Re: Clarifying XFS behaviour for dates before 1901 and after 2038

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

On Wed, Mar 09, 2022 at 05:53:03PM +1030, Jonathan Woithe wrote:
> Turning to PC-2, things became confusing.  This older environment also has an
> xfs created many years ago.  Two tests were run:
> 
>  * > touch -d '1800/01/01 02:23:45.67' foobar
>    > ls --full-time foobar
>    -rw-r--r-- 1 jwoithe users 0 1800-01-01 02:23:45.670000000 +0914 foobar
> 
>  * > touch -d '2100/01/01 02:23:45.67' foobar
>    > ls --full-time foobar
>    -rw-r--r-- 1 jwoithe users 0 2100-01-01 02:23:45.670000000 +1030 foobar
> 
> ... However, it seems that the system somehow manages to store the
> out-of-bound years.  Doing so has an interesting effect on the timezone
> offset for the pre-1901 years, ...

Following the information provided by Darrick I still wanted to understand
the "+0914" timezone offset.  I've done some research and it turns out that
prior to 1 February 1895 the time zone in this part of the world really was
UT+0914 (or, to be entirely accurate, UT+0914.5) [1].  In those days noon
was defined to be the time that sun was directly overhead, hense the
odd-ball timezone.  The "+0914" timezone reported in the year-1800 case is
therefore correct.

Regards
  jonathan

[1] https://sahistoryhub.history.sa.gov.au/subjects/time



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux