forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

code to calculate weekday for a given date
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
simon



Joined: 05 Jul 2006
Posts: 307

PostPosted: Wed Nov 05, 2025 8:02 pm    Post subject: Reply with quote

It started in 1582 only in some countries. Britain adopted it only in 1752. Countries like China, Turkey, and those aligned with Russia adopted it a little over 100 years ago.
Back to top
View user's profile Send private message
simon



Joined: 05 Jul 2006
Posts: 307

PostPosted: Wed Nov 05, 2025 8:06 pm    Post subject: Reply with quote

It started in 1582 only in some countries. Britain changed in 1752. Countries like China, Turkey, and those aligned with Russia only adopted it a little over 100 years ago. I believe that in all cases days of the week were not skipped, but dates of the month were, so algorithms such as the one discussed here are location and time specific, and if you want to go back in time by more than 100 years some adjustments will be needed. You can't even make a simple adjustment by country because Alaska, for example, adopted the Gregorian calendar later than other parts of the US (because it used to be part of Russia).
Back to top
View user's profile Send private message
arctica



Joined: 10 Sep 2006
Posts: 148
Location: United Kingdom

PostPosted: Thu Nov 06, 2025 1:42 pm    Post subject: Reply with quote

The Wikipedia summary gives a good overview:

https://en.wikipedia.org/wiki/Gregorian_calendar
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1917

PostPosted: Thu Nov 06, 2025 2:14 pm    Post subject: Reply with quote

Applying the DOW function to dates from decades ago can be beset by many problems. For instance, consider the Alaska problem:

the purchase date of Friday, October 6 (Julian) was followed once again by Friday, October 18 (instead of Saturday, October 19 in Gregorian)

Time zones have historical issues. Alaska had four time zones in some past years. Even now, London and Paris are one hour apart, even though Paris is just 2 degrees longitude to the East of London and, therefore, should differ by just 8 minutes of time. This was a consequence of the German occupation of Paris during WW-II.
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2623
Location: Sydney

PostPosted: Sun Nov 09, 2025 10:43 am    Post subject: Reply with quote

You have been discussing different calendars, when they were adopted and now the problem of time zones.
However the most annoying calendar for me is Bill's Excel(ent) calendar, which provides:
Tuesday, 28 February 1900
Wednesday, 29 February 1900
Thursday, 1 March 1900
( I assume that 1-Mar-1900 was a Thursday and 28-Feb-1900 was a Wednesday ?)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group