Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #383208 > unrolled thread
| Started by | porkchop@invalid.foo (Mike Sanders) |
|---|---|
| First post | 2024-03-01 03:48 +0000 |
| Last post | 2024-03-05 13:30 +0000 |
| Articles | 11 on this page of 91 — 18 participants |
Back to article view | Back to comp.lang.c
getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-01 03:48 +0000
Re: getFirstDayOfMonth() gazelle@shell.xmission.com (Kenny McCormack) - 2024-03-01 15:39 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-01 17:12 +0100
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-01 08:28 -0800
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-01 17:33 +0100
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-01 17:37 +0100
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-01 10:34 -0800
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-01 22:03 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-01 17:20 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-01 16:47 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-01 17:56 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-01 17:18 +0000
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-01 20:47 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-01 21:38 +0000
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-01 21:50 +0000
Re: getFirstDayOfMonth() Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-03 09:52 -0800
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-02 00:00 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-02 14:46 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-02 16:41 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-02 19:59 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-02 22:14 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 18:08 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-05 03:03 +0100
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-02 14:22 -0800
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-03 15:43 +0100
Re: getFirstDayOfMonth() David Brown <david.brown@hesbynett.no> - 2024-03-03 18:45 +0100
Re: getFirstDayOfMonth() Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-03 18:42 +0000
Re: getFirstDayOfMonth() David Brown <david.brown@hesbynett.no> - 2024-03-04 09:49 +0100
Re: getFirstDayOfMonth() Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2024-03-04 11:31 +0000
Re: getFirstDayOfMonth() Richard Harnden <richard.nospam@gmail.invalid> - 2024-03-04 14:23 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-04 17:27 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 17:34 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-04 17:40 +0000
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 18:11 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-04 18:26 +0000
Re: getFirstDayOfMonth() Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-04 18:30 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-04 19:01 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-05 03:09 +0100
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-05 15:06 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-05 02:56 +0100
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 02:49 +0000
Re: getFirstDayOfMonth() Mark Bourne <nntp.mbourne@spamgourmet.com> - 2024-03-06 20:40 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-06 20:54 +0000
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 17:26 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-04 17:34 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-04 10:07 -0800
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 23:47 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-04 16:10 -0800
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 00:12 +0000
[OT] Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-05 03:18 +0100
Re: [OT] Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 02:55 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-05 15:03 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-05 13:25 -0800
Re: getFirstDayOfMonth() Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2024-03-04 21:21 +0000
Re: getFirstDayOfMonth() Michael S <already5chosen@yahoo.com> - 2024-03-05 00:37 +0200
Re: getFirstDayOfMonth() Michael S <already5chosen@yahoo.com> - 2024-03-05 11:41 +0200
Re: getFirstDayOfMonth() Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-14 15:57 -0700
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 23:35 +0000
Re: getFirstDayOfMonth() Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-03-05 03:20 +0100
Re: getFirstDayOfMonth() James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-03-03 04:06 -0500
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-04 18:21 +0000
Re: getFirstDayOfMonth() James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-03-04 14:42 -0500
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-04 14:50 -0800
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 00:40 +0000
Re: getFirstDayOfMonth() Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-05 01:27 +0000
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 02:40 +0000
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-05 15:05 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-04 17:39 -0800
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 02:43 +0000
Re: getFirstDayOfMonth() Michael S <already5chosen@yahoo.com> - 2024-03-05 01:08 +0200
Re: getFirstDayOfMonth() porkchop@invalid.foo (Mike Sanders) - 2024-03-05 00:18 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-04 16:33 -0800
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-03 15:24 +0000
Re: getFirstDayOfMonth() Michael S <already5chosen@yahoo.com> - 2024-03-03 20:20 +0200
Re: getFirstDayOfMonth() scott@slp53.sl.home (Scott Lurndal) - 2024-03-03 18:56 +0000
Re: getFirstDayOfMonth() Mark Bourne <nntp.mbourne@spamgourmet.com> - 2024-03-03 13:17 +0000
Re: getFirstDayOfMonth() jak <nospam@please.ty> - 2024-03-02 02:49 +0100
Re: getFirstDayOfMonth() Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-03 09:47 -0800
Re: getFirstDayOfMonth() jak <nospam@please.ty> - 2024-03-04 02:26 +0100
Re: getFirstDayOfMonth() Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2024-03-05 14:03 +1100
Re: getFirstDayOfMonth() bart <bc@freeuk.com> - 2024-03-05 13:19 +0000
Re: getFirstDayOfMonth() jak <nospam@please.ty> - 2024-03-13 05:40 +0100
Re: getFirstDayOfMonth() jak <nospam@please.ty> - 2024-03-13 06:01 +0100
Re: getFirstDayOfMonth() Spiros Bousbouras <spibou@gmail.com> - 2024-03-13 13:38 +0000
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-13 08:47 -0700
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-13 09:11 -0700
Re: getFirstDayOfMonth() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-03-13 07:36 -0700
Re: getFirstDayOfMonth() Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-03-14 19:56 -0700
Re: getFirstDayOfMonth() Kaz Kylheku <433-929-6894@kylheku.com> - 2024-03-02 03:44 +0000
Re: getFirstDayOfMonth() Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2024-03-05 14:07 +1100
Re: getFirstDayOfMonth() gazelle@shell.xmission.com (Kenny McCormack) - 2024-03-05 13:30 +0000
Page 5 of 5 — ← Prev page 1 2 3 4 [5]
| From | bart <bc@freeuk.com> |
|---|---|
| Date | 2024-03-05 13:19 +0000 |
| Message-ID | <us765i$3pbtq$1@dont-email.me> |
| In reply to | #383384 |
On 05/03/2024 03:03, Peter 'Shaggy' Haywood wrote:
> Groovy hepcat jak was jivin' in comp.lang.c on Sat, 2 Mar 2024 12:49 pm.
> It's a cool scene! Dig it.
>
>> Kenny McCormack ha scritto:
>>> In article <urrj5l$124o9$1@dont-email.me>,
>>> Mike Sanders <porkchop@invalid.foo> wrote:
>>>> Just sharing what I've learned, hope some of you can adapt
>>>> it for your own use.
>>>>
>>>> Calculates the name of the weekday (Sun, Mon, etc) for the
>>>> 1st day of a given month & year...
>>>>
>>>> https://busybox.neocities.org/notes/get-first-day-of-month.txt
>>>
>>> Here's the guts of my version of the Zeller algorithm:
>>>
>>> int day(d,m,y)
>>> int d, m, y;
>>> {
>>> if (m < 3) {
>>> m += 12;
>>> y--;
>>> }
>>> return (d + (13*m-27)/5 + y + y/4 - y/100 + y/400) % 7;
>>
>> Hi,
>> I am referring in particular to this part of the equation:
>> y + y/4 - y/100 + y/400
>> Shouldn't it be calculated in a floating point and then truncated only
>> the final result? Because, for example, if the year is 2024, the
>> floating point calculation is 2514 (2514.82) while executed between
>> integer is 2515.
>
> No. The "+ y/4 - y/100 + y/400" part is adding a day for each leap
> year. You see, a leap year is divisible by 4, but is not divisible by
> 100, but is divisible by 400. So, it's adding the number of years
> divisible by 4, subtracting those divisible by 100 and adding those
> divisible by 400 to determine the number of leap days up to the given
> date.
> So often in the last week or two I've heard people (who ought to know
> better) on news programs on telly say that a leap year comes every 4
> years, and I want to beat them about the head with a humorous object of
> some kind until they get this right! A leap year does NOT come EVERY 4
> years.
For most practical purposes and for the lifetimes of most of the 8
billion people on the planet, leap years do come every four years.
That's the case for years 1901 to 2099.
What exactly do you expect those news readers that reach a massive
audience to do, get into those details of being divisible or not by 100
or 400? Maybe they should also mention odd years like 1752 where there
was a calendar reform for even more exceptions to the rule.
Half the audience probably barely know what a leap year is.
[toc] | [prev] | [next] | [standalone]
| From | jak <nospam@please.ty> |
|---|---|
| Date | 2024-03-13 05:40 +0100 |
| Message-ID | <usranh$pftj$1@dont-email.me> |
| In reply to | #383385 |
bart ha scritto: > For most practical purposes and for the lifetimes of most of the 8 > billion people on the planet, leap years do come every four years. > > That's the case for years 1901 to 2099. > > What exactly do you expect those news readers that reach a massive > audience to do, get into those details of being divisible or not by 100 > or 400? Maybe they should also mention odd years like 1752 where there > was a calendar reform for even more exceptions to the rule. > > Half the audience probably barely know what a leap year is. You are right, but this usenet is followed by people, professionals and computer enthusiasts. I would like to try to make a statistics but I think at least 70% read somewhere how to determine if a year is a leap. I, example, discovered this by writing my first management program in Rmcobol almost 40 years ago.
[toc] | [prev] | [next] | [standalone]
| From | jak <nospam@please.ty> |
|---|---|
| Date | 2024-03-13 06:01 +0100 |
| Message-ID | <usrbv1$pmv9$1@dont-email.me> |
| In reply to | #383570 |
jak ha scritto: > bart ha scritto: >> For most practical purposes and for the lifetimes of most of the 8 >> billion people on the planet, leap years do come every four years. >> >> That's the case for years 1901 to 2099. >> >> What exactly do you expect those news readers that reach a massive >> audience to do, get into those details of being divisible or not by >> 100 or 400? Maybe they should also mention odd years like 1752 where >> there was a calendar reform for even more exceptions to the rule. >> >> Half the audience probably barely know what a leap year is. > > > You are right, but this usenet is followed by people, professionals and > computer enthusiasts. I would like to try to make a statistics but I > think at least 70% read somewhere how to determine if a year is a leap. > I, example, discovered this by writing my first management program in > Rmcobol almost 40 years ago. Instead, I would be curious to understand why nobody follows a standard about the dates. Let's take this date for example: January 1, 1580. On the web 50% of the sites searched with "day of week calculator" say that the day was Tuesday while the others say it was Friday. Excel and Calc (OpenOffice) say it was Friday and the same says "cal" on *nix if the "--iso" option is not used. So, someone follows the ISO convention and others Julian but I read somewhere that the ISO convention had to be followed in the computer scope.
[toc] | [prev] | [next] | [standalone]
| From | Spiros Bousbouras <spibou@gmail.com> |
|---|---|
| Date | 2024-03-13 13:38 +0000 |
| Message-ID | <8mNE3wTqvNvro8cZV@bongo-ra.co> |
| In reply to | #383571 |
On Wed, 13 Mar 2024 06:01:22 +0100 jak <nospam@please.ty> wrote: > Instead, I would be curious to understand why nobody follows a standard > about the dates. Let's take this date for example: January 1, 1580. > On the web 50% of the sites searched with "day of week calculator" say > that the day was Tuesday while the others say it was Friday. Excel and > Calc (OpenOffice) say it was Friday and the same says "cal" on *nix if > the "--iso" option is not used. So, someone follows the ISO convention > and others Julian but I read somewhere that the ISO convention had to be > followed in the computer scope. For the year 1580 what would be the appropriate standard ? I don't see any point using a modern standard for 1580. The day of the week is a cultural matter depending on era and location so what useful cultural information would you get by knowing that according to a modern standard , January 1 1580 was whatever day ?
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2024-03-13 08:47 -0700 |
| Message-ID | <87bk7i6smy.fsf@nosuchdomain.example.com> |
| In reply to | #383578 |
Spiros Bousbouras <spibou@gmail.com> writes:
> On Wed, 13 Mar 2024 06:01:22 +0100
> jak <nospam@please.ty> wrote:
>> Instead, I would be curious to understand why nobody follows a standard
>> about the dates. Let's take this date for example: January 1, 1580.
>> On the web 50% of the sites searched with "day of week calculator" say
>> that the day was Tuesday while the others say it was Friday. Excel and
>> Calc (OpenOffice) say it was Friday and the same says "cal" on *nix if
>> the "--iso" option is not used. So, someone follows the ISO convention
>> and others Julian but I read somewhere that the ISO convention had to be
>> followed in the computer scope.
>
> For the year 1580 what would be the appropriate standard ? I don't see any
> point using a modern standard for 1580. The day of the week is a cultural
> matter depending on era and location so what useful cultural information
> would you get by knowing that according to a modern standard , January 1
> 1580 was whatever day ?
There's something called the proleptic Gregorian calendar, produced by
extending the rules for the Gregorian calendar back to dates preceding
its introduction. It's used fairly widely.
https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar
Note also that in the US consider George Washington's birthday is
considered to be February 22 (NS, new style), even though that date was
February 11 (OS) under the Julian calender then in effect.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2024-03-13 09:11 -0700 |
| Message-ID | <8734su6rio.fsf@nosuchdomain.example.com> |
| In reply to | #383584 |
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
[...]
> Note also that in the US consider George Washington's birthday is
> considered to be February 22 (NS, new style), even though that date was
> February 11 (OS) under the Julian calender then in effect.
Some day I'll learn to re-read after editing and avoid word jumbles like
the above.
Note also that in the US George Washington's birthday is considered to
be February 22 (NS, new style), even though that date was February 11
(OS) under the Julian calender then in effect.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2024-03-13 07:36 -0700 |
| Message-ID | <87o7bi6vxh.fsf@nosuchdomain.example.com> |
| In reply to | #383571 |
jak <nospam@please.ty> writes:
> jak ha scritto:
>> bart ha scritto:
>>> For most practical purposes and for the lifetimes of most of the 8
>>> billion people on the planet, leap years do come every four years.
>>>
>>> That's the case for years 1901 to 2099.
>>>
>>> What exactly do you expect those news readers that reach a massive
>>> audience to do, get into those details of being divisible or not by
>>> 100 or 400? Maybe they should also mention odd years like 1752
>>> where there was a calendar reform for even more exceptions to the
>>> rule.
>>>
>>> Half the audience probably barely know what a leap year is.
>>
>> You are right, but this usenet is followed by people, professionals and
>> computer enthusiasts. I would like to try to make a statistics but I
>> think at least 70% read somewhere how to determine if a year is a leap.
>> I, example, discovered this by writing my first management program in
>> Rmcobol almost 40 years ago.
>
> Instead, I would be curious to understand why nobody follows a standard
> about the dates. Let's take this date for example: January 1, 1580.
> On the web 50% of the sites searched with "day of week calculator" say
> that the day was Tuesday while the others say it was Friday. Excel and
> Calc (OpenOffice) say it was Friday and the same says "cal" on *nix if
> the "--iso" option is not used. So, someone follows the ISO convention
> and others Julian but I read somewhere that the ISO convention had to be
> followed in the computer scope.
Where did you read that? ISO has no police force. Anyone writing a
program or a web page can do whatever they like. Sure, some things you
can do with a web page might be illegal, but using a non-ISO calendar
standard isn't one of them.
As you probably know, the transition from the Julian to the Gregorian
calendar happened at different times in different parts of the world:
1582 in Roman Catholic countries, 1752 in Britain and its posessions
(including what later became the US), and as late as the 1920s in some
places. (The "cal" command on my system has no "--iso" option.)
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Date | 2024-03-14 19:56 -0700 |
| Message-ID | <86bk7gp5ii.fsf@linuxsc.com> |
| In reply to | #383579 |
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes: > jak <nospam@please.ty> writes: [about different date formats] >> So, someone follows the ISO convention and others Julian but I >> read somewhere that the ISO convention had to be followed in the >> computer scope. > > Where did you read that? ISO has no police force. [...] Note that there are organizations that mandate compliance with some ISO standards under certain circumstances even though the organizations themselves have no direct relationship with ISO.
[toc] | [prev] | [next] | [standalone]
| From | Kaz Kylheku <433-929-6894@kylheku.com> |
|---|---|
| Date | 2024-03-02 03:44 +0000 |
| Message-ID | <20240301180259.118@kylheku.com> |
| In reply to | #383214 |
On 2024-03-01, Kenny McCormack <gazelle@shell.xmission.com> wrote:
> int day(d,m,y)
> int d, m, y;
> {
[...]
> BTW, how long do you think it will be until this thread gets hijacked into
> a long, acrimonious debate about what the definition of the first day of
> the month is and how various cultures define it differently, and how
Pissing on new code using old-style C in 5... 4... 3....
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
[toc] | [prev] | [next] | [standalone]
| From | Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> |
|---|---|
| Date | 2024-03-05 14:07 +1100 |
| Message-ID | <kseibk-jk1.ln1@hendrix.foo> |
| In reply to | #383239 |
Groovy hepcat Kaz Kylheku was jivin' in comp.lang.c on Sat, 2 Mar 2024
02:44 pm. It's a cool scene! Dig it.
> On 2024-03-01, Kenny McCormack <gazelle@shell.xmission.com> wrote:
>> int day(d,m,y)
>> int d, m, y;
>> {
> [...]
>> BTW, how long do you think it will be until this thread gets hijacked
>> into a long, acrimonious debate about what the definition of the
>> first day of the month is and how various cultures define it
>> differently, and how
>
> Pissing on new code using old-style C in 5... 4... 3....
I'm surprised noone's mentioned this until now.
--
----- Dig the NEW and IMPROVED news sig!! -----
-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2024-03-05 13:30 +0000 |
| Message-ID | <us76qj$24ki7$1@news.xmission.com> |
| In reply to | #383239 |
In article <20240301180259.118@kylheku.com>, Kaz Kylheku <433-929-6894@kylheku.com> wrote: ... >Pissing on new code using old-style C in 5... 4... 3.... Actually, the code in question says (according to the comments) that it was written 12/10/99. I suppose even that is fairly modern (by the standards of CLC newsgroup regs). Obviously, the algorithm goes much further back than that. See: https://en.wikipedia.org/wiki/Christian_Zeller Julius Christian Johannes Zeller (24 June 1822, Mühlhausen am Neckar ? 31 May 1899, Cannstatt) -- Modern Conservative: Someone who can take time out from demanding more flag burning laws, more abortion laws, more drug laws, more obscenity laws, and more police authority to make warrantless arrests to remind us that we need to "get the government off our backs".
[toc] | [prev] | [standalone]
Page 5 of 5 — ← Prev page 1 2 3 4 [5]
Back to top | Article view | comp.lang.c
csiph-web