News for hackers. Stuff that matters.
Re:UTC Is Enough for Everyone, Right? by cryptonector on Tuesday May 29, 2018 @07:17PM (#17183593)
"One month from now" is horrible. Is that "30 days from now" or "same day number next month"? If the latter, then how do you handle a 31st when the next month has 30 days or fewer? (Or a 29th when the next month is February and this is not a leap year?)

This is a difficult subject.

Recurrence is especially tough to model in a database.

Re:UTC Is Enough for Everyone, Right? by narag on Wednesday May 30, 2018 @04:28AM (#17186036)
It depends on the context. I've programmed date logic for holiday calculation, days open for business and deadlines. I like working with dates because it's always well specified.
Re:UTC Is Enough for Everyone, Right? by wafflebear on Wednesday May 30, 2018 @07:33AM (#17186814)
How about adding the number of days in the current month?
Re:UTC Is Enough for Everyone, Right? by cryptonector on Wednesday May 30, 2018 @09:49AM (#17187592)
It depends on user intent.

Often the user means "same day of the week, four or five weeks from now".