Currently, to get milliseconds from start of 1970 in a local time zone, I do
long localMillis = dateTime.withZone(timeZone).toLocalDateTime()
.toDateTime(DateTimeZone.UTC).getMillis();
This works, but is there a simpler way to do this?
Currently, to get milliseconds from start of 1970 in a local time zone, I do
long localMillis = dateTime.withZone(timeZone).toLocalDateTime()
.toDateTime(DateTimeZone.UTC).getMillis();
This works, but is there a simpler way to do this?