Thread View: news.software.nn
5 messages
5 total messages
Started by Allu Helenius
Mon, 23 Mar 1992 10:30
Happy Birthday, Kim
Author: Allu Helenius
Date: Mon, 23 Mar 1992 10:30
Date: Mon, 23 Mar 1992 10:30
9 lines
738 bytes
738 bytes
Kim writes in account.c:
> if (tm->tm_mon == 3 && tm->tm_mday == 23) return 1; /* my birthday */
I guess it is today. Happy Birthday, Kim!
Allu
--
(This space intentionally left blank.)
Re: Happy Birthday, Kim
Author: James Turner
Date: Mon, 23 Mar 1992 17:44
Date: Mon, 23 Mar 1992 17:44
41 lines
2490 bytes
2490 bytes
ahe@tkk.tele.fi (Allu Helenius) writes:
>Kim writes in account.c:
>> if (tm->tm_mon == 3 && tm->tm_mday == 23) return 1; /* my birthday */
>I guess it is today. Happy Birthday, Kim!
>Allu
>--
> (This space intentionally left blank.)
Actually...
Declarations of all the functions and externals, and the tm
structure, are in the <time.h> header file. The structure
(of type) struct tm includes the following fields:
int tm_sec; /* seconds (0 - 59) */
int tm_min; /* minutes (0 - 59) */
int tm_hour; /* hours (0 - 23) */
int tm_mday; /* day of month (1 - 31) */
>>>>>>> int tm_mon; /* month of year (0 - 11) */
int tm_year; /* year - 1900 */
int tm_wday; /* day of week (Sunday = 0) */
int tm_yday; /* day of year (0 - 365) */
int tm_isdst; /* 1 if DST in effect */
char *tm_zone; /* abbreviation of timezone name */
long tm_gmtoff; /* offset from GMT in seconds */
So Kim's BD is next month (April 23). The other birthday mentioned is
12/25, which should be fairly obvious.
*******************************************************************************
* James M. Turner | > (LET ((DISCLAIMER 'INTERLEAF-NOT-RESPONSIBLE)) *
* Senior System Engineer | #'(LAMBDA (FLAME) *
* Interleaf, Inc | (AUTO-INTENSIFY-FLAME FLAME 999))) *
* (617) 290-0710 | #<Lexical Flamage 12342123> *
* turner@HQ.Ileaf.com | > (DO ((FLAMAGE (GET-NEXT-FLAME) (GET-NEXT-FLAME)))*
* uunet!leafusa!turner | ((NOT FLAMAGE)) *
* | (FUNCALL * FLAMAGE)) *
*******************************************************************************
Re: Happy Birthday, Kim
Author: Keld J|rn Simonsen
Date: Mon, 23 Mar 1992 19:34
Date: Mon, 23 Mar 1992 19:34
13 lines
859 bytes
859 bytes
ahe@tkk.tele.fi (Allu Helenius) writes: >Kim writes in account.c: >> if (tm->tm_mon == 3 && tm->tm_mday == 23) return 1; /* my birthday */ >I guess it is today. Happy Birthday, Kim! Well, it is next month, actually. Must be some kind of counting from zero. Keld Simonsen Keld@dkuug.dk
Re: Happy Birthday, Kim
Author: Paul Sutcliffe Jr.
Date: Tue, 24 Mar 1992 03:25
Date: Tue, 24 Mar 1992 03:25
16 lines
1056 bytes
1056 bytes
ahe@tkk.tele.fi (Allu Helenius) writes: >Kim writes in account.c: >> if (tm->tm_mon == 3 && tm->tm_mday == 23) return 1; /* my birthday */ >I guess it is today. Happy Birthday, Kim! I'd say you're off by a month. Since tm_mon is zero-based, three would refer to April, not March. - paul -- INTERNET: paul@devon.lns.pa.us | The weather is here. UUCP: ...!rutgers!devon!paul | Wish you were beautiful.
Re: Happy Birthday, Kim
Author: Max Heffler
Date: Tue, 24 Mar 1992 16:50
Date: Tue, 24 Mar 1992 16:50
20 lines
1375 bytes
1375 bytes
paul@devon.lns.pa.us (Paul Sutcliffe Jr.) writes: >ahe@tkk.tele.fi (Allu Helenius) writes: >>Kim writes in account.c: >>> if (tm->tm_mon == 3 && tm->tm_mday == 23) return 1; /* my birthday */ >>I guess it is today. Happy Birthday, Kim! >I'd say you're off by a month. Since tm_mon is zero-based, three would refer >to April, not March. That means Kim and I share the same birthday (:-) ... -- Max Heffler, Senior Software Engineer internet: max@compaq.com Compaq Computer Corporation uucp: ..!uunet!max@compaq.com P.O. Box 692000 - M050701 phone: (713) 378-8366 Houston, Texas 77269-2000 fax: (713) 374-7305
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads