Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
icambron
8y ago
0 comments
Save
Share
No, they're 0-indexed in Moment. But yes, the reason I made Luxon 1-index them is that days and years are 1-indexed. I also fielded a
lot
of issues in Moment that were caused by newer programmers not knowing that months were 0-indexed.
0 comments
1 comments · 1 top-level
top
newest
oldest
hectorlorenzo
8y ago
Good stuff.
j
/
k
navigate · click thread line to collapse