Timeline for answer to Is there any technical reason why, in programming, the default date format is YYYYMMDD and not something else? by Stop harming Monica
Current License: CC BY-SA 4.0
Post Revisions
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 3, 2018 at 8:27 | comment | added | Kafein | This is a greatly under-appreciated answer, if only because it shows that many programs and libraries handling date output will do the wrong thing by default. I can excuse the UNIX program "date" incorrectly assuming that its common use case is to display dates in the supposedly more human readable (it's not, even when setup correctly) local format. But for the internals of programming languages this makes no sense whatsoever. | |
| Sep 28, 2018 at 21:39 | comment | added | Stop harming Monica | @BasilBourque Thanks, I added a random sample of the logs I found in my own system. I don't have examples of the other types handy. But I don't think that a trend towards defaulting to ISO 8601 in specific domains make its basic variant "the default in programming" in the face of the vast amount of software that defaults to other formats. | |
| Sep 28, 2018 at 21:20 | history | edited | Stop harming Monica | CC BY-SA 4.0 |
added 770 characters in body
|
| Sep 27, 2018 at 22:01 | comment | added | Basil Bourque | While the point of this Answer is true for end-user-oriented apps, not so for data exchange between systems, data serialization, message/data protocols, logging, tracing, debuggers, and so on. The ISO 8601 standard is rapidly becoming the norm for such uses aimed at system admins and programmers. Ditto for international or locale-agnostic scenarios. | |
| Sep 27, 2018 at 21:03 | history | edited | Stop harming Monica | CC BY-SA 4.0 |
added 164 characters in body
|
| Sep 27, 2018 at 20:42 | comment | added | Stop harming Monica | @PaŭloEbermann You are right, I hope it is better now. As I said many of these formats are localized so the actual format you see will depend on your localization options. | |
| Sep 27, 2018 at 20:37 | history | edited | Stop harming Monica | CC BY-SA 4.0 |
added 26 characters in body
|
| Sep 27, 2018 at 20:27 | comment | added | Paŭlo Ebermann |
The first one is not really "bash", it is the date program (and it outputs Do 27. Sep 22:27:09 CEST 2018 here.)
|
|
| Sep 27, 2018 at 11:05 | comment | added | Topher Brink | to add to your argument, how many of them are formatted that way because of user settings on the computer you ran the scrip on? | |
| Sep 26, 2018 at 22:07 | history | answered | Stop harming Monica | CC BY-SA 4.0 |