@duerst (Martin Dürst) (Martin Dürst), @zverok (Victor Shepelev) (Victor Shepelev)
In short, I think you two misinterpreted my comment. I never wrote that the order of the units is wrong. I am talking about the combination of the units (thus, I wrote arbitrarily selected). The proposal selected a particular subset of the units available in ISO 8601.
--
duerst (Martin Dürst) wrote in #note-4:
it's very clearly ordered from larger units to smaller, and this is a very widely used convention not only for time, but also for other units including currencies. Also, it's the order used in ISO 8601, the international standard for date and time formats. So very far from arbitrary.
I am not sure why you are mentioning the order. If that combination [year, month, mday, hour, min, sec, subsec]
were to be used, sure, ordering from larger units to smaller like that is the most logical way. No question. You mentioned currencies, but in Japanese, as you may know, that is the way it works for anything from family name-first name order, addresses, etc. In Japanese, even the AM/PM (午前/午後) is read after the day but before the hour because they (having half day span) are smaller units than a day but larger than hours.
zverok (Victor Shepelev) wrote in #note-5:
I don't think this statement is fair. This sequence of units is not natural for some particular culture. E.g. 18:10 at Oct 21 would be written "10/21/22 6:10pm" in US, and "18:10 21.10.2022" in Ukraine, but "2022-10-21 18:10:00"
is rather a common engineering implementation, logically structured for unambiguous parsing and sorting.
What is not fair? Of course "2022-10-21 18:10:00"
is more logical and easier to parse than "18:10 at Oct 21", "10/21/22 6:10pm" or "18:10 21.10.2022". What is the point of bringing up somewhat convoluted formats and comparing with them?
duerst (Martin Dürst) wrote in #note-4:
There may be such people (I know that week number/weekday is very popular in Germany for business meetings), but overall this is a very small minority, and virtually everybody is familiar with (western) months.
I did not say that people are not familiar with months. The concept is so wide spread that many people know it. The question is, whether they want to (be forced to) use it in their code.
For your information, the Quo Vadis weekly planners have gained a vast amount of users throughout the world. The page format using two facing pages allow for scheduling of a week, and they are numbered with the week number and the day of week. This is just one example, and many people throughout the world use similar planners/calendars as their choice.
zverok (Victor Shepelev) wrote in #note-5:
I understand there are different cultures out there (and for some, it is not "Oct 21, 2022" at all, but maybe "26 Tishrei, 5783" or "25 Rabi ul Awal 1444", or something else), but I believe it can be said with a high confidence that
- when seeing a sequence of numbers starting with
2022,
or year,
, most of developers can guess the forthcoming units.
- when trying to design or guess sequence of units of Time/Date representation today (with widespread standardization, JSON serializations etc.), the best guess would be close to ISO8601 Date & Time format.
The very ISO8601 that you mention disallows commonplace descriptors of dates (or parts of dates) like "January", "Thursday", or "New Year's Day". So the formats you mention: "Oct 21, 2022", "26 Tishrei, 5783", or "25 Rabi ul Awal 1444" are all out of question.
And the very ISO8601 that you mention does not force you to use calendar dates (month-based dates). It equally specifies week dates (week-based dates) and ordinal dates (dates based on the day of the year) as well.
I do not understand the point of your statement:
- when seeing a sequence of numbers starting with
2022,
or year,
, most of developers can guess the forthcoming units.
Sure, given the ISO 8601 format "2022-294", we can tell it is the 294th day of year 2022, or given the ISO 8601 format "2009-W53-7", we can tell that it is the Sunday of 53rd week of year 2009. What is wrong with that? And how is that related to my comment?
And actually, my comment is also related to the point Matz made against deconstruct
:
positional deconstruction force users to remember the meaning of order of elements
People would have to remember what comes next because it is not universal.