this post was submitted on 17 Jan 2024
14 points (100.0% liked)
Golang
2197 readers
1 users here now
This is a community dedicated to the go programming language.
Useful Links:
Rules:
- Posts must be relevant to Go
- No NSFW content
- No hate speech, bigotry, etc
- Try to keep discussions on topic
- No spam of tools/companies/advertisements
- It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If they provided constants, someone would complain that they produce the wrong result for daylight savings or leap years.
This - no one can agree how long a day, week, month, year etc are!
Like sure it's 24 hours in a day but is a year 365 days? No, not technically speaking.
Time has always been really hard for programmers.
Well now I need to go add some tests and fix some bugs. Thanks yall.