Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Also, if you are working on anything dealing with date in the future, you nearly always want to store wall clock time + location. Sadly, there is no standard for that.

iCalendar is an RFC standard for this. [1] Note that some times have two representations and some times are not representable in this format when there's a time change due to DST.

iCal also does not contemplate a location being reassigned to a different time zone, an issue discussed elsewhere in this thread.

Of course, properly formatted iCal files also include data for all of the referenced timezones. Which makes it cumbersome if you just wanted to output a single datetime.

[1] https://icalendar.org/iCalendar-RFC-5545/3-3-5-date-time.htm...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: