I'm trying to determine if localtime() should always follow the Gregorian calendar or not. The C99 spec is not clear on this (it's clear that gmtime() is always Gregorian) and POSIX doesn't seem to bring it up.
I could just change the time zone on my own machine, but I don't trust that will really give an accurate representation. What I want is someone to run localtime() on a Unix distribution specifically designed for and by Russians, Eastern Europeans or Chinese. These all changed from Julian to Gregorian in the last 100 years, inside the range of 32 bit localtime().
So if someone with a machine like that could run:
perl -wle 'print scalar localtime(-2**30-2**29-2**28)'
and
perl -wle 'print scalar localtime(-2**30)'
and let me know the result (and what Unix dist you're using and time zone you're in) that would give me some data points.
Thanks.
PS Don't use my patched bleadperl for this.
use D'oh; (Score:2)
The ad at the top of this page is for Russian "dating." WTF. Someone complain to the site operator.
Chinese Standard Time (Score:1)
Re: (Score:2)
Thanks, but I don't trust Fedora to get it right. Maybe Red Flag Linux?
From Russia (Score:1)
Re: (Score:1)