Re: [PATCH] Add a new pattern for zero-based months for Date/Time Formatting

From: Christoph Berg <myon(at)debian(dot)org>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Vincent Moreau <vincentneko(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Add a new pattern for zero-based months for Date/Time Formatting
Date: 2025-03-26 13:59:30
Message-ID: Z-QIQjw1_p1laSuo@msg.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Re: Peter Eisentraut
> Moreover, if there are zero-based months, why not zero-based days,
> or any of the other fields?

I would suspect this is coming from C's struct tm where tm_mon is
0..11 and all other fields being "normal". Used by asctime(), gmtime()
and friends.

Christoph

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-03-26 14:17:12 Re: vacuum_truncate configuration parameter and isset_offset
Previous Message Robert Haas 2025-03-26 13:52:09 Re: vacuum_truncate configuration parameter and isset_offset