Open printfn opened 2 years ago
Unix epoch to timestamp would be very useful:
ideally, something like:
1666202400000 / 1000 to date Wed Oct 19 18:00:00 UTC 2022
(I have a file w/ a timestamp in milliseconds since the epoch)
Date differences in ISO 8061 would a cool feature, for example
> '2022-11-06' - '2022-07-31'
98 Days
Can |2022|01|01|
be the syntax for dates?
I went ahead and implemented a simple date syntax:
> @1970-01-01
Thursday, 1 January 1970
> @2000-01-01 + 10000 days
Wednesday, 19 May 2027
I often have to convert dates and times between different time zones and I would love to be able to that with fend.
'2022-01-01' to date
@1970-01-01
date + 5 days
2:23:28.936