473,729 Members | 2,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

January 1 ?

Jan 1st, 1 AD was Sunday or Saturday ?

(question is related to C as I am writing a program (in C) to
calculate days/dates and need a starting point from where to start
counting.)
Nov 14 '05 #1
27 1768
mark wrote:
Jan 1st, 1 AD was Sunday or Saturday ?
In which calendar?
Julian ? Gregorian? A different one...?
(question is related to C as I am writing a program (in C) to
calculate days/dates and need a starting point from where to start
counting.)


Perhaps is better to start with Friday October 15, 1582 as day #1 !

- Dario
Nov 14 '05 #2
mark wrote:
Jan 1st, 1 AD was Sunday or Saturday ?
Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's. Before that, a variety of calendars were
in use, and which calendar depended on which country. Think "year after
the founding of Rome", for instance.
(question is related to C as I am writing a program (in C) to
calculate days/dates and need a starting point from where to start
counting.)

--

Lew Pitcher, IT Consultant, Enterprise Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
Nov 14 '05 #3
In article <DN************ *******@news20. bellglobal.com> Lew Pitcher <Le*********@td .com> writes:
mark wrote:
Jan 1st, 1 AD was Sunday or Saturday ?


Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's.


Let's make that 1582.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #4

On Tue, 15 Jun 2004, Dik T. Winter wrote:

Lew Pitcher <Le*********@td .com> writes:
mark wrote:
Jan 1st, 1 AD was Sunday or Saturday ?


Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's.


Let's make that 1582.


Ah, yes. "Not all of Usenet was part of the British Empire in the
sixteenth century." ;-) But Lew's right that the Gregorian calendar
under which *we* currently operate didn't exist prior to 1752... before
then it was a Gregorian calendar under which we didn't operate! :)

The OP might be better served by just figuring out the current date
and backtracking according to whatever algorithm he's using. For
example, if he's using the rule "leap year every four years except
centuries except 400-year centuries," then his "January 1st" will
fall on a Sunday, I think.
[Windows tells me that 1 Jan 2000 was a Sunday, and Google tells
me that
(2000/4 - 2000/100 + 2000/400 + 2000*365) mod 7 = 0
Thus I conclude that 1 Jan 0000 was a Sunday. And yes, I know there
was no 1 Jan 0000. I don't think the OP will care as long as his
program works.]

Of course, there's only seven possibilities. The OP might as well
employ trial and error --- only one of the seven possibilities for
"January 1st" will produce the correct day of the week for today.

-Arthur
Nov 14 '05 #5
In article <DN************ *******@news20. bellglobal.com> ,
Lew Pitcher <Le*********@td .com> wrote:
Jan 1st, 1 AD was Sunday or Saturday ?
Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's. Before that, a variety of calendars were
in use, and which calendar depended on which country. Think "year after
the founding of Rome", for instance.


You only have to consider calendars in which the term "1 AD" makes
sense, which narrows it down a bit.

-- Richard
Nov 14 '05 #6
"Arthur J. O'Dwyer" wrote:

On Tue, 15 Jun 2004, Dik T. Winter wrote:

Lew Pitcher <Le*********@td .com> writes:
mark wrote:
> Jan 1st, 1 AD was Sunday or Saturday ?

Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's.


Let's make that 1582.


Ah, yes. "Not all of Usenet was part of the British Empire in the
sixteenth century." ;-) But Lew's right that the Gregorian calendar
under which *we* currently operate didn't exist prior to 1752... before
then it was a Gregorian calendar under which we didn't operate! :)


It existed. *We* just didn't use it yet.

[...]

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
+-------------------------+--------------------+-----------------------------+
Nov 14 '05 #7
"Arthur J. O'Dwyer" <aj*@nospam.and rew.cmu.edu> writes:
[...]
Ah, yes. "Not all of Usenet was part of the British Empire in the
sixteenth century." ;-) But Lew's right that the Gregorian calendar
under which *we* currently operate didn't exist prior to 1752... before
then it was a Gregorian calendar under which we didn't operate! :)


No calendar under which *I* operate existed prior to 1959.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #8
On 15 Jun 2004 14:38:59 GMT, in comp.lang.c , ri*****@cogsci. ed.ac.uk
(Richard Tobin) wrote:
In article <DN************ *******@news20. bellglobal.com> ,
Lew Pitcher <Le*********@td .com> wrote:
Jan 1st, 1 AD was Sunday or Saturday ?

Under which calendar, and in which country? It matters.
FWIW, the "Gregorian" calendar under which we currently operate didn't
exist prior to the mid-1700's. Before that, a variety of calendars were
in use, and which calendar depended on which country. Think "year after
the founding of Rome", for instance.


You only have to consider calendars in which the term "1 AD" makes
sense, which narrows it down a bit.


ISTR that Romans (and many other kingdoms, empires etc) counted from the
year of acension of the Emperor. How many emperors, kings etc began with a
D?
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #9
Mark McIntyre wrote:
On 15 Jun 2004 14:38:59 GMT, in comp.lang.c , ri*****@cogsci. ed.ac.uk
(Richard Tobin) wrote:

You only have to consider calendars in which the term "1 AD" makes
sense, which narrows it down a bit.

ISTR that Romans (and many other kingdoms, empires etc) counted from the
year of acension of the Emperor. How many emperors, kings etc began with a
D?


The Latinates among us will remember that "a.d." stands for "ante diem"
as well, as in "ante diem quartum Idus Martias." The number of possible
"1 AD" dates is quite large.
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1113
by: Jeffery D. Collins | last post by:
January 19, 2004, 7:00PM at Level 3 Communications in Broomfield, CO. Title: Jython, the best of both worlds or the lowest common denominator Author: Demian L. Neidetcher Abstract: Python is a language that this choir knows has many great features. Admittedly, Java has some benefits that Python doesn't; it has great momentum behind it and it has a good install base.
3
1445
by: Brett C. | last post by:
Anthony Baxter, our ever-diligent release manager, mentioned this past week that Python 2.3.5 will most likely come to fruition some time in January (this is not guaranteed date). This means that in order to have enough time to proper evaluate new patches and bugs they must be reported **now**! A one month lead time is necessary to properly look at, test, and commit patches, let alone coming up with solutions to any reported bugs. ...
0
506
by: Betty Harvey | last post by:
Happy 2004! I hope everyone had a great holiday and will have a good new year. The next meeting of the XML Users Group will be held on Wednesday, January 21, 2004 at the American Geophysical Union (AGU) at 2000 Florida Avenue, N.W., Washington, DC 20009-1277. The meeting starts at 7:00 p.m. and usually last approximately 2 hours. If attending the meeting by Metro, get off the Dupont Circle stop and walk north to Florida Avenue...turn...
8
4669
by: Tom | last post by:
Please help. I need a quick little scrpit to place on a web page that will count how many days have passed since January 1, 1970. I have ZERO experience writing ANY scripts. Anyone have any suggestions? As for what is displayed on the screen, I just want it to say: Today is: 12578 (or however many days have passed since that date.)
0
1443
by: Georgeo Pulikkathara[MS] | last post by:
ASP.NET Webcast Week - January 19 - 23, 2004 Learn about ASP.NET from the experts! These free webcasts are live and interactive. Live code demos and attendees asking in depth engaging questions are all part of these live webcasts. This is a great way to get educated, engaged, and enlightened on Microsoft ASP.NET. Register for all 12 webcasts at http://msdn.microsoft.com/asp.net/using/training/webcasts. ...
7
2718
by: rockdale | last post by:
hi, I just downloaded Microsoft Enterprise Library Jan 2006 and try to integrate it into my asp.net application. As i am going to connect to mySQL database, I need to include the source code in my project so that I can debug better. But I all those examples I found are reference the compiled dll only. What are the steps to include the source code of Microsoft Enterprise Library into my project? I created a new dir and copy Microsoft...
0
1455
by: Carl Friedrich Bolz | last post by:
===================================================================== PyPy Leysin Winter Sports Sprint (8-14th January 2007) ===================================================================== ... image:: http://www.ermina.ch/002.JPG The next PyPy sprint will be in Leysin, Switzerland, for the fourth time. This sprint will be the final public sprint of our EU-funded period, and a kick-off for the final work...
3
3574
by: rockdale | last post by:
Hi, all: My web application using MS EntLib for .net 2.0 (Jan 2006) to access my backend database. It works fine with MS SQL 2k. Now we are migrate from MS SQL to mySQL. Everything looks fine except one serious problem: we got the "too many connections" error. Looks like the EntLib did not properly close these connections. on mySQL Administratorserver connectionsThreads I can see a new thread created after a couple of...
0
1167
by: Carl Friedrich Bolz | last post by:
===================================================================== PyPy Leysin Winter Sprint (12-19th January 2008) ===================================================================== ... image:: http://www.ermina.ch/002.JPG The next PyPy sprint will be in Leysin, Switzerland, for the fifth time. This is a fully public sprint: newcomers and topics other than those proposed below are welcome. ...
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8148
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2680
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.