[tz] localized date without time

Paul Eggert eggert at cs.ucla.edu
Thu Aug 1 02:04:45 UTC 2024


On 2024-07-31 19:00, Tim Parenti wrote:
> The
> "2023-09-21" only gives a precision of a day

What the original email doesn't make clear, is that the original 
timestamp has an accuracy of only a day. As I understand it, it's 
counting the number of seconds since 1970-01-01 00:00:00 UTC and 
dividing by 24*60*60.

There's a similar issue in GNU ChangeLog entries, which have lines like 
"2015-04-03  Ulrich Müller  <ulm at gentoo.org>". Some projects want those 
dates to be in local time, others in UTC. Both approaches have 
advantages, and the usual tools to generate those lines typically come 
with options to let you pick the tradition you prefer.


More information about the tz mailing list