timeinfo presents month as number in range 2..13 #186
turenus
started this conversation in
Bugs: Found
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
It looks very strange to get May as sixth month in dict:timeinfo:
$ now dup datetime puts! timeinfo puts!
2022-05-06T23:46:00Z
{7 :day true :dst 2 :hour 46 :minute 6 :month 0 :second -10800 :timezone 6 :weekday 2022 :year 126 :yearday ;timeinfo}
Is it possible that previously Nim has defined Month as enum starting from 0 but since some version it was changed to start the enum from 1?
Beta Was this translation helpful? Give feedback.
All reactions