TLDR Web Dev · MISCELLANEOUS
HOW TO THINK ABOUT TIME
Summary from the TLDR Web Dev newsletter
Physical time (instants and durations measured in seconds) is different from civil time (datetimes and periods based on calendar systems like the Gregorian calendar), as there are more complexities and potential for bugs when dealing with civil time. It's important to use well-defined time zones (like those from the IANA database) and avoid ambiguous types like "zoned datetime.” This guide provides language-specific API recommendations for handling date and time operations well.