Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.misc > #75412

Re: Date formatting.

From Pancho <Pancho.Jones@protonmail.com>
Newsgroups comp.os.linux.misc
Subject Re: Date formatting.
Date 2025-09-29 18:30 +0100
Organization A noiseless patient Spider
Message-ID <10befmu$33rad$1@dont-email.me> (permalink)
References (13 earlier) <18692cf2a1c4c4fa$28998$2650548$802601b3@news.usenetexpress.com> <10bb1s4$29c4m$1@dont-email.me> <20250929091131.00000dc4@gmail.com> <FIyCQ.112782$DQYd.18287@fx16.iad> <jvqqqlxnbk.ln2@Telcontar.valinor>

Show all headers | View raw


On 9/29/25 18:07, Carlos E.R. wrote:
> On 2025-09-29 18:45, Charlie Gibbs wrote:
>> On 2025-09-29, John Ames <commodorejohn@gmail.com> wrote:
>>
>>> On Sun, 28 Sep 2025 11:15:32 +0100
>>> Nuno Silva <nunojsilva@invalid.invalid> wrote:
>>>
>>>> although I wonder if it's common for USA date order to use
>>>> dashes.
>>>
>>> US date formats normally use a forward slash and MM/DD/YYYY is the more
>>> common ordering (which reflects spoken US English - it's more normal to
>>> say "June 5th" than "the fifth of June.") Dashes get used mostly in a
>>> computing context where software may be prone to barf on encountering
>>> the slash (*nix treating it as a directory separator, Win/DOS as a flag
>>> indicator.) Computing also does see YYYY/MM/DD used instead, since that
>>> ASCII-sorts automagically, but it's not common in any other context.
>>
>> Not for lack of trying.  ISO 8601 is being gently but persistently pushed
>> in a lot of places, and I'm proud to say that I'm doing my bit; all 
>> report
>> programs that I write format dates as yyyy-mm-dd, and so far no user has
>> found it sufficiently objectionable to demand a change.
>>
>> I can still remember the day in 1967 when I realized that year-month-day
>> is the only reasonable date format.  That's probably because I was 
>> already
>> seeing too much ambiguity with things like 4/5/1967 - is it April 5 or
>> May 4?  The answer depends on whether you're in the US or the UK, and
>> if you're in Canada all bets are off.  Better to toss the whole thing
>> out and replace it with an unambiguous standard, i.e. ISO 8601.
>>
>> BTW year-month-day also EBCDIC-sorts, as well as ASCII-sorts. :-)
> 
> As soon as I learned of this iso standard I switched to it. But it is 
> certainly not mandatory as someone claimed angrily in this thread. No 
> manner of mad jumping will make banks switch from the standard they use, 
> which is whatever national standard is in the nation they are, which 
> here is DD/MM/YYYY.
> 
> cer@Telcontar:~> date
> 2025-09-29T19:04:05 CEST
> cer@Telcontar:~>
> 
> I don't like the date-time separator, though.
> 
> 

I like YYYYMMDD too, but the real epiphany moment for me was when I 
realised that all dates should be handled internally UTC, Unix time, 
and that output format, display, is just a user preference.

It is so obvious, and yet I worked on so many systems that messed up 
date conversions/different time zones.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Favorite Font Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-09-27 14:44 +0000
  Re: Favorite Font Farley Flud <fflud@gnu.rocks> - 2025-09-27 15:22 +0000
    Re: Favorite Font Nuno Silva <nunojsilva@invalid.invalid> - 2025-09-28 11:15 +0100
      Re: Favorite Font ram@zedat.fu-berlin.de (Stefan Ram) - 2025-09-28 10:42 +0000
      Re: Favorite Font Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-09-28 14:03 -0700
        Re: Favorite Font Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-28 22:51 +0000
          Re: Favorite Font candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-09-30 18:30 +0000
            Re: Favorite Font Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-09-30 11:45 -0700
              Re: Favorite Font rbowman <bowman@montana.com> - 2025-09-30 20:04 +0000
            Re: Favorite Font Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-30 22:46 +0000
        Re: Favorite Font Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-10-04 09:31 +0000
          Re: Favorite Font Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2025-10-04 10:08 -0700
            Re: Favorite Font Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-10-04 21:10 +0000
      Re: Favorite Font John Ames <commodorejohn@gmail.com> - 2025-09-29 09:11 -0700
        Re: Favorite Font Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2025-09-29 16:45 +0000
          Date formatting. "Carlos E.R." <robin_listas@es.invalid> - 2025-09-29 19:07 +0200
            Re: Date formatting. Pancho <Pancho.Jones@protonmail.com> - 2025-09-29 18:30 +0100
              Re: Date formatting. Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-09-29 19:40 +0000
                Re: Date formatting. "Carlos E.R." <robin_listas@es.invalid> - 2025-09-29 21:52 +0200
              Re: Date formatting. "Carlos E.R." <robin_listas@es.invalid> - 2025-09-29 21:45 +0200
              Re: Date formatting. rbowman <bowman@montana.com> - 2025-09-30 02:08 +0000
            Re: Date formatting. c186282 <c186282@nnada.net> - 2025-09-29 23:15 -0400
          Re: Favorite Font rbowman <bowman@montana.com> - 2025-09-29 18:55 +0000

csiph-web