Open wclr opened 3 years ago
I'd say "it depends" - which is why this library doesn't provide codecs for the datetime library. If you're dealing with an external API that representation might not be suitable. If you don't care about the specifics of the representation then yeah, dimap
ping via Instant
is probably the easiest definition.
How would you advise to work with
DataTime
from the core package and codecs, is the preferred way would be to convert it toMilliseconds
usingunInstant $ Instant.fromDate date
and convert it back usingInstant.toDateTime
?