With the TimeZones package I can make a ZonedDateTime
that has information about my timezone:
t = ZonedDateTime(2019, 2, 25, 12, 34, 56, localzone())
I am in Central European Time so the above command returns 2019-02-25T12:34:56+01:00
on my computer.
This corresponds to the UTC time that is an hour earlier, that is, 2019-02-25T11:34:56
.
Is there a nice way convert such a ZonedDateTime
to (Zoned)DateTime
with the equivalent UTC time?