H
Harti Brandt
On Tue, 15 Jun 2004, Dik T. Winter wrote:
DTW> > mark wrote:
DTW> > > Jan 1st, 1 AD was Sunday or Saturday ?
DTW> > >
DTW> > > (question is related to C as I am writing a program (in C) to
DTW> > > calculate days/dates and need a starting point from where to start
DTW> > > counting.)
DTW>...
DTW> > > cal -j 1 0001
DTW> > January 1
DTW> > Sun Mon Tue Wed Thu Fri Sat
DTW> > 1
DTW> > 2 3 4 5 6 7 8
DTW>
DTW>I do not think this gives what you think it is giving; try cal -j 2 0001.
DTW>
DTW> > > cal 9 1752
DTW> > September 1752
DTW> > Su Mo Tu We Th Fr Sa
DTW> > 1 2 14 15 16
DTW>
DTW>Ah, yes... Now if cal recognised the country where you were, much more
DTW>interesting would have been 'cal 2 1712' in Sweden.
It gets even more interesting in Russia, because the orthodox church is
still using the old calendar (therefor Chrismas in Russia is on the 6th of
January), so 'cal' would need to recognize whether an orthodox priest is
typing or a normal human beeing
harti
DTW> > mark wrote:
DTW> > > Jan 1st, 1 AD was Sunday or Saturday ?
DTW> > >
DTW> > > (question is related to C as I am writing a program (in C) to
DTW> > > calculate days/dates and need a starting point from where to start
DTW> > > counting.)
DTW>...
DTW> > > cal -j 1 0001
DTW> > January 1
DTW> > Sun Mon Tue Wed Thu Fri Sat
DTW> > 1
DTW> > 2 3 4 5 6 7 8
DTW>
DTW>I do not think this gives what you think it is giving; try cal -j 2 0001.
DTW>
DTW> > > cal 9 1752
DTW> > September 1752
DTW> > Su Mo Tu We Th Fr Sa
DTW> > 1 2 14 15 16
DTW>
DTW>Ah, yes... Now if cal recognised the country where you were, much more
DTW>interesting would have been 'cal 2 1712' in Sweden.
It gets even more interesting in Russia, because the orthodox church is
still using the old calendar (therefor Chrismas in Russia is on the 6th of
January), so 'cal' would need to recognize whether an orthodox priest is
typing or a normal human beeing
harti