3 ms·
We need to be able to timestamp stuff still, right? If the 28th of Bichat is 2014-13-28 and the 1st of Moses is 2015-01-01, how do we timestamp those "uncharte
by jack-r-abbit 13y ago
We need to be able to timestamp stuff still, right?
If the 28th of Bichat is 2014-13-28 and the 1st of Moses is 2015-01-01, how do we timestamp those "uncharted" festival days? Would they just be 2014-13-29 (and 2014-13-30 on leap year) but just not have a day of week name?
- crux 13y agoGood question. In the library, intercalary days are just their own month. So it would just be 2015-14-1.
- userbinator 13y agoIn other words, there's actually a 14 month that either contains 1 or 2 days, both of which have no weekday associated with them? I don't see how it would make things much easier, especially for timestamps in various date formats and date-input fields.
- toyg 13y agoWhy? It's still three numeric digits. If anything, it would be much easier to calculate date validity. In Python: acceptable_days = range(1,29) if pickedMonth == 14: acceptable_days = [1]; if isLeapYear(year): acceptable_days = [1,2] # any future hack will just go here if pickedDay not in acceptable_days or pickedMonth > 14: raise InvalidDateException() Compare this with anything we use today. Which code is simpler?
- Avshalom 13y ago2015-00-00 2015-00-01 And making dates 0 indexed will make all the C-weenies happy.
- notdonspaulding 13y agoAre you saying you'd put the extra days at the start of the first month of the year? Wouldn't that put you back to where the days are not consistently ordered based off their position in the month?
- deleted 13y ago[deleted]
- Avshalom 13y agoThe extra days don't advance the Sun-Sat cycle no matter where you put them. January 1 is essentially defined as Monday (or whatever).