UTCTime -package:thyme

This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.
This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.
Decode UTCTime
>>> input utcTime "2020-01-01T12:34:56+02:00"
2020-01-01 10:34:56 UTC
Convert the day and time part of the calendar to a UTCTime.
>>> import qualified Data.Text as T

>>> c1 <- calendar (T.pack "CET") (Locale "de_DE") TraditionalCalendarType

>>> show c1
2021-10-12 18:00:50

>>> utcTime c1
2021-10-12 16:00:50.544999999998 UTC
Behaves as zonedTime, but converts any time zone offset into a UTC time.
Decode JSON string to UTCTime using Aesons's instance implementation
Encode JSON string to UTCTime using Aesons's instance implementation
xTyZ [ISO 8601:2004(E) sec. 4.3.2]
Output YYYY-MM-DD HH:MM:SS with an optional .SSS fraction part. Explicit timezone attribute is not appended as per SQLite3's datetime conventions.
ISO 8601:2004(E) sec. 4.3.2
>>> parseOnly utcTimeInISO8601 "2017-02-01T05:03:58+01:00"
Right 2017-02-01 04:03:58 UTC