needed-libraries icon indicating copy to clipboard operation
needed-libraries copied to clipboard

Date library (native nim excluding time, usable at compile time in const)

Open alehander92 opened this issue 6 years ago • 1 comments

(From Nim community survey 2017)

alehander92 avatar Nov 16 '17 09:11 alehander92

I don't get why we need Dates "excluding time", just set time to zero?

Python has Date and DateTime and I think its a big source of confusion and conversions you don't want. Having done a ton of work around times and timezones, the only true way to work with time is in seconds, and Date/DateTime/TimeZone is a display only issue.

Shameless plug for my calendar/timestamp/timezone library: https://github.com/treeform/chrono

treeform avatar Nov 16 '17 22:11 treeform