Post A2o7dcOYP1ztyt1PlI by lig@fosstodon.org
(DIR) More posts by lig@fosstodon.org
(DIR) Post #A2o6nTqQwoJ4P8CWrg by urusan@fosstodon.org
2021-01-01T22:18:40Z
1 likes, 0 repeats
What's the best date format?Not the one your culture uses mind you, the BEST one.
(DIR) Post #A2o79umHUYUcJ3xM0m by lig@fosstodon.org
2021-01-01T22:22:44Z
0 likes, 0 repeats
@urusan Oh, boy. Oh, boy. I just don't know how to start:)First, those formats do not exist.There are some similar formats:* YYYY-MM-DD* MM/DD/YYYY* DD.MM.YYYYBy the way, those don't exist as well:* DD/MM/YYYY* MM.DD.YYYY* DD-MM-YYYYFrom those existing ones, I prefer YYYY-MM-DD and completely ok with DD.MM.YYYY as a cultural one.
(DIR) Post #A2o7bO60azAL3PHehE by urusan@fosstodon.org
2021-01-01T22:27:41Z
1 likes, 0 repeats
@lig I only have 4 poll choices, so I'm just laying out the general schema, you can use whatever separators you like.
(DIR) Post #A2o7dcOYP1ztyt1PlI by lig@fosstodon.org
2021-01-01T22:28:07Z
0 likes, 0 repeats
@urusan sorry, but you don't
(DIR) Post #A2o8Y5gggHjf2xQpaS by methyltheobromine@netzsphaere.xyz
2021-01-01T22:38:17.787842Z
0 likes, 0 repeats
@lig @urusan yes you do lmao is this about being borderline lawful or do you really think date-strings can't be formatted in any way?
(DIR) Post #A2o9H2sPyi6bMPM3Iu by lig@fosstodon.org
2021-01-01T22:41:48Z
0 likes, 0 repeats
@methyltheobromine @urusan I know by horrible real-life experience that people format dates whatever they like. This doesn't make doing so any more legitimate:)The best one I had is the "ASAP" string instead of an ISO formatted date in XML response from one widely-known data provider.
(DIR) Post #A2o9H32hMUKRsIAGKO by methyltheobromine@netzsphaere.xyz
2021-01-01T22:46:26.299660Z
0 likes, 0 repeats
@lig @urusan if you store or transmit date+time in anything else than "milliseconds since 1970" you deserve the horrible experience
(DIR) Post #A2o9zq8OCVvSs7BWF6 by lig@fosstodon.org
2021-01-01T22:51:57Z
0 likes, 0 repeats
@methyltheobromine @urusan Sometimes, it is required to store the user intent instead of the moment in time. If a user wants a meeting to happen at 10am two months from now and a month before that their timezone data changes and 10am on that date shifts for an hour, you need to be able to handle that.So, if you want to state a moment in time then you can do it using some kind of counter from some zero time.For a user intent, you are forced to be smarter than that.
(DIR) Post #A2o9zsKW2OoXgIsEQC by methyltheobromine@netzsphaere.xyz
2021-01-01T22:54:30.201721Z
0 likes, 0 repeats
@lig @urusan you sound like a webdev tbh
(DIR) Post #A2o9ztwq1P3whRoLnE by methyltheobromine@netzsphaere.xyz
2021-01-01T22:54:30.212154Z
0 likes, 0 repeats
@lig @urusan no, there's no problem with what you mentioned
(DIR) Post #A2oA3JjMcQFdX38aDw by lig@fosstodon.org
2021-01-01T22:53:17Z
0 likes, 0 repeats
@methyltheobromine @urusan those should be seconds btw:)
(DIR) Post #A2oA3JrW86lzwKx5vs by methyltheobromine@netzsphaere.xyz
2021-01-01T22:55:10.662511Z
0 likes, 0 repeats
@lig @urusan no, it's milliseconds
(DIR) Post #A2oAEAzxQSPRdP4q1Y by lig@fosstodon.org
2021-01-01T22:55:50Z
0 likes, 0 repeats
@methyltheobromine @urusan is it supposed to be an insult?
(DIR) Post #A2oAEBIkIbREZfrqJE by methyltheobromine@netzsphaere.xyz
2021-01-01T22:57:08.297202Z
0 likes, 0 repeats
@lig @urusan do you feel insulted?
(DIR) Post #A2oAJF5TeNOjlS4gDo by lig@fosstodon.org
2021-01-01T22:56:47Z
0 likes, 0 repeats
@methyltheobromine @urusan and who sounds like a web dev now?:)
(DIR) Post #A2oAJFK0mL1YUWsHsO by methyltheobromine@netzsphaere.xyz
2021-01-01T22:58:03.240465Z
0 likes, 0 repeats
@lig @urusan you
(DIR) Post #A2oATIlsoAUi5NhqJU by lig@fosstodon.org
2021-01-01T22:58:00Z
0 likes, 0 repeats
@methyltheobromine @urusan do you feel satisfied?
(DIR) Post #A2oATJ3bkGfkyLzzwO by methyltheobromine@netzsphaere.xyz
2021-01-01T22:59:52.522059Z
0 likes, 0 repeats
@lig @urusan is this supposed to be related?
(DIR) Post #A2oAuBif8RQ8281JEO by splatt9990@fosstodon.org
2021-01-01T23:04:43Z
0 likes, 0 repeats
@urusan only iso formatted dates will be accepted for all applications. Including the time component with nanosecond resolution and time zone specified. All others are wrong /s
(DIR) Post #A2oAx3AnMm5uOdXm9g by splatt9990@fosstodon.org
2021-01-01T23:02:55Z
0 likes, 0 repeats
@methyltheobromine @lig @urusan Unix time is in seconds (you have to call the u*, e.g utime, functions for higher resolution.) Only JS (AFAIK) defaults to ms resolution
(DIR) Post #A2oAx3R6O98dDDAnZY by methyltheobromine@netzsphaere.xyz
2021-01-01T23:05:14.703428Z
1 likes, 0 repeats
@splatt9990 @lig @urusan did I mention unix? or did I say "milliseconds since 1970"?
(DIR) Post #A2oFA9GARn1Ar4YdzE by Zach777@fosstodon.org
2021-01-01T23:52:24Z
0 likes, 0 repeats
@urusan My preferred one is Month abbrieviation day (with letters at the end) year.
(DIR) Post #A2oHI7ontEKCbrgpv6 by Matter@fosstodon.org
2021-01-02T00:16:15Z
0 likes, 0 repeats
@urusan the 2nd one is wrong, but either of the others can be the best depending on the application. Like for printing in a document I would use DDMMYYYY but for filenames YYYYMMDD...Just pick a direction to vary the precision in and stick with it, that's all I ask
(DIR) Post #A2oHd2vNHTEfVpjtjM by frommMoritz@chaos.social
2021-01-02T00:20:02Z
0 likes, 0 repeats
@urusan YYYY-MM-DD
(DIR) Post #A2oJEnAmOPyzcOVWIS by carcinopithecus@x0r.be
2021-01-02T00:38:04Z
0 likes, 0 repeats
@urusan yyyy-mm-ddmmm dd, yyyy is tolerable inasmuch as "mmm" is lettersi detest anything starting with the day as a latinate corruption
(DIR) Post #A2oJvAUS5ddW68upBA by hejowhat@fosstodon.org
2021-01-02T00:45:42Z
0 likes, 0 repeats
@urusan YYYYMMDDEverything else is trolling :O)ISO 8601 ftw.
(DIR) Post #A2oPuTV8WNrKUlHvrU by 123abceng@kiwifarms.cc
2021-01-02T01:52:51.971524Z
0 likes, 0 repeats
@urusan The one only reason why YYYYMMDD - better for sorting without parsing. But in US we use MMDDYYYY, and from User's point of view - you can't make any app which is relates to any business, if you are trying to push user to use another format. Those corporate rules are very old, especially in rural area, construction, engineering, legal and medical practices, architecture... every human activity which was related to produce tons of paperwork.If we are talking about data entry, for the most of Americans 221985 - is a February 2, 1985. So, leading zeroes is not a part of common habit. If the edit doesn't allow to input spaces or slashes, dots or commas, and we need to parse dates, we suppose to be prepared, that pushing the User Experiene to use exact MMDDYYYY matrix usually leads to user's discomfort. That's a very big field. Thank you for raising that conversation.
(DIR) Post #A2olHVhiaxCj1czz1s by kambing@fosstodon.org
2021-01-02T05:50:42Z
0 likes, 0 repeats
@urusan OHOHOHO you asked the inflammatory question.Look at this hella long thread about this back on september https://mastodon.indie.host/@stragu/104793709476415609
(DIR) Post #A2olmWnCb9ChNVM13Y by dbs@code4lib.social
2021-01-02T04:28:13Z
0 likes, 0 repeats
@urusan YYYY-MM-DD
(DIR) Post #A2omn1jzdK5tJgefXU by kambing@fosstodon.org
2021-01-02T05:53:59Z
0 likes, 0 repeats
@urusan i think the thread was much longer before the originating instance of the first post blocked our instance and possibly others
(DIR) Post #A2omn1sr6NBPlAnkLw by kambing@fosstodon.org
2021-01-02T05:55:13Z
0 likes, 0 repeats
@urusan nevermind it doesnt look like a block, looks like federation inconsistencies. I see more replies pulling this post up in fosstodon webview than from the original instance
(DIR) Post #A2omn22mVT7gFxRfpA by urusan@fosstodon.org
2021-01-02T06:09:12Z
0 likes, 0 repeats
@kambing Honestly, I didn't realize what I was getting into by asking this question.As for the missing replies, I know some people automatically delete their toots after a set time, and sometimes instances close down, so maybe that's contributing to the differences you're seeing?
(DIR) Post #A2onAwK3QjWBSgvOV6 by kambing@fosstodon.org
2021-01-02T06:13:32Z
0 likes, 0 repeats
@urusan yea thats definitely a possibility!
(DIR) Post #A2oqRqs3FhWpL5aB28 by stchris@fosstodon.org
2021-01-02T06:50:11Z
0 likes, 0 repeats
@urusan YYYY-MM-DD https://en.m.wikipedia.org/wiki/ISO_8601
(DIR) Post #A2qC17ZTReGDSuVnjE by mark@metalhead.club
2021-01-02T22:26:33Z
0 likes, 0 repeats
@urusan It's unfortunate that there's no neat tie-up between the length of a lunar month and an Earth year... yet we try to cobble the two together.