|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: m
Length: 5129 (0x1409)
Names: »mktime.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/mktime.3«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6b 74 69 6d 65 28 33 29 0a 0a 0a 0a ┆ions mktime(3) ┆
0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x0080…00a0 20 20 6d 6b 74 69 6d 65 20 2d 20 63 6f 6e 76 65 72 74 73 20 62 72 6f 6b 65 6e 2d 64 6f 77 6e 20 ┆ mktime - converts broken-down ┆
0x00a0…00c0 74 69 6d 65 20 69 6e 74 6f 20 74 69 6d 65 20 73 69 6e 63 65 20 74 68 65 20 45 70 6f 63 68 0a 0a ┆time into time since the Epoch ┆
0x00c0…00e0 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 ┆S S S SY Y Y YN N N NT T T TA A ┆
0x00e0…0100 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 ┆A AX X X X # # # #i i i in ┆
0x0100…0120 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 ┆n n nc c c cl l l lu u u ud d d ┆
0x0120…0140 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 ┆de e e e < < < <t t t ti i i im ┆
0x0140…0160 6d 08 6d 08 6d 65 08 65 08 65 08 65 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 ┆m m me e e e. . . .h h h h> > > ┆
0x0160…0180 3e 0a 0a 20 20 20 20 20 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 ┆> t t t ti i i im m m me e┆
0x0180…01a0 08 65 08 65 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 6d 08 6d 08 6d 08 6d 6b 08 6b 08 6b 08 ┆ e e_ _ _ _t t t t m m m mk k k ┆
0x01a0…01c0 6b 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 20 28 08 ┆kt t t ti i i im m m me e e e ( ┆
0x01c0…01e0 28 08 28 08 28 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 ┆( ( (t t t ti i i im m m me e e ┆
0x01e0…0200 65 70 08 70 08 70 08 70 74 08 74 08 74 08 74 72 08 72 08 72 08 72 29 08 29 08 29 08 29 0a 20 20 ┆ep p p pt t t tr r r r) ) ) ) ┆
0x0200…0220 20 20 20 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 63 ┆ s s s st t t tr r r ru u u uc┆
0x0220…0240 08 63 08 63 08 63 74 08 74 08 74 08 74 20 74 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 20 2a 08 2a ┆ c c ct t t t t t t tm m m m * *┆
0x0240…0260 08 2a 08 2a 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 ┆ * *t t t ti i i im m m me e e e┆
0x0260…0280 70 08 70 08 70 08 70 74 08 74 08 74 08 74 72 08 72 08 72 08 72 3b 08 3b 08 3b 08 3b 0a 0a 44 08 ┆p p p pt t t tr r r r; ; ; ; D ┆
0x0280…02a0 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 ┆D D DE E E ES S S SC C C CR R R ┆
0x02a0…02c0 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f ┆RI I I IP P P PT T T TI I I IO O┆
0x02c0…02e0 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 32 6b 74 69 6d 65 20 63 08 63 08 63 08 63 6f ┆ O ON N N N 2ktime c c c co┆
0x02e0…0300 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 76 08 76 08 76 08 76 65 08 65 08 65 08 65 72 08 72 08 72 ┆ o o on n n nv v v ve e e er r r┆
0x0300…0320 08 72 74 08 74 08 74 08 74 73 08 73 08 73 08 73 20 74 08 74 08 74 08 74 68 08 68 08 68 08 68 65 ┆ rt t t ts s s s t t t th h h he┆
0x0320…0340 08 65 08 65 08 65 20 74 08 74 08 74 08 74 69 08 69 08 69 08 69 6d 08 6d 08 6d 08 6d 65 08 65 08 ┆ e e e t t t ti i i im m m me e ┆
0x0340…0360 65 08 65 20 72 08 72 08 72 08 72 65 08 65 08 65 08 65 70 08 70 08 70 08 70 72 08 72 08 72 08 72 ┆e e r r r re e e ep p p pr r r r┆
0x0360…0380 65 08 65 08 65 08 65 73 08 73 08 73 08 73 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 74 08 74 08 ┆e e e es s s se e e en n n nt t ┆
0x0380…03a0 74 08 74 65 08 65 08 65 08 65 64 08 64 08 64 08 64 20 62 08 62 08 62 08 62 79 08 79 08 79 08 79 ┆t te e e ed d d d b b b by y y y┆
0x03a0…03c0 20 74 08 74 08 74 08 74 68 08 68 08 68 08 68 65 08 65 08 65 08 65 20 5f 08 74 5f 08 6d 20 73 74 ┆ t t t th h h he e e e _ t_ m st┆
0x03c0…03e0 72 75 63 74 75 72 65 0a 20 20 20 20 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 20 5f 08 74 5f 08 ┆ructure pointed to by _ t_ ┆
0x03e0…0400 69 5f 08 6d 5f 08 65 5f 08 70 5f 08 74 5f 08 72 20 69 6e 74 6f 20 61 20 63 61 6c 65 6e 64 61 72 ┆i_ m_ e_ p_ t_ r into a calendar┆
0x0400…0420 20 74 69 6d 65 20 28 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 0a 20 20 20 20 20 73 65 63 6f 6e 64 ┆ time (the number of second┆
0x0420…0440 73 20 73 69 6e 63 65 20 74 68 65 20 45 70 6f 63 68 2c 20 69 2e 65 2e 20 30 30 3a 30 30 3a 30 30 ┆s since the Epoch, i.e. 00:00:00┆
0x0440…0460 20 55 54 43 2c 20 4a 61 6e 75 61 72 79 20 31 2c 0a 20 20 20 20 20 31 39 37 30 29 2e 0a 0a 20 20 ┆ UTC, January 1, 1970). ┆
0x0460…0480 20 20 20 54 68 65 20 5f 08 74 5f 08 6d 20 73 74 72 75 63 74 75 72 65 20 69 6e 63 6c 75 64 65 73 ┆ The _ t_ m structure includes┆
0x0480…04a0 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 72 75 63 ┆ the following: struc┆
0x04a0…04c0 74 20 20 20 20 74 6d 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 74 6d ┆t tm { int tm┆
0x04c0…04e0 5f 73 65 63 3b 20 20 20 2f 2a 20 73 65 63 6f 6e 64 73 20 61 66 74 65 72 20 74 68 65 20 6d 69 6e ┆_sec; /* seconds after the min┆
0x04e0…0500 75 74 65 20 5b 30 2c 20 36 31 5d 20 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ┆ute [0, 61] */ i┆
0x0500…0520 6e 74 20 20 74 6d 5f 6d 69 6e 3b 20 20 20 2f 2a 20 6d 69 6e 75 74 65 73 20 61 66 74 65 72 20 74 ┆nt tm_min; /* minutes after t┆
0x0520…0540 68 65 20 68 6f 75 72 20 5b 30 2c 20 35 39 5d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆he hour [0, 59] */ ┆
0x0540…0560 20 20 69 6e 74 20 20 74 6d 5f 68 6f 75 72 3b 20 20 2f 2a 20 68 6f 75 72 20 73 69 6e 63 65 20 6d ┆ int tm_hour; /* hour since m┆
0x0560…0580 69 64 6e 69 67 68 74 20 5b 30 2c 20 32 33 5d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆idnight [0, 23] */ ┆
0x0580…05a0 20 20 69 6e 74 20 20 74 6d 5f 6d 64 61 79 3b 20 20 2f 2a 20 64 61 79 20 6f 66 20 74 68 65 20 6d ┆ int tm_mday; /* day of the m┆
0x05a0…05c0 6f 6e 74 68 20 5b 31 2c 20 33 31 5d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 ┆onth [1, 31] */ i┆
0x05c0…05e0 6e 74 20 20 74 6d 5f 6d 6f 6e 3b 20 20 20 2f 2a 20 6d 6f 6e 74 68 73 20 73 69 6e 63 65 20 4a 61 ┆nt tm_mon; /* months since Ja┆
0x05e0…0600 6e 75 61 72 79 20 5b 30 2c 20 31 31 5d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆nuary [0, 11] */ ┆
0x0600…0620 69 6e 74 20 20 74 6d 5f 79 65 61 72 3b 20 20 2f 2a 20 79 65 61 72 73 20 73 69 6e 63 65 20 31 39 ┆int tm_year; /* years since 19┆
0x0620…0640 30 30 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 74 6d 5f 77 64 61 ┆00 */ int tm_wda┆
0x0640…0660 79 3b 20 20 2f 2a 20 64 61 79 73 20 73 69 6e 63 65 20 53 75 6e 64 61 79 20 5b 30 2c 20 36 5d 20 ┆y; /* days since Sunday [0, 6] ┆
0x0660…0680 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 74 6d 5f 79 64 61 79 3b 20 ┆*/ int tm_yday; ┆
0x0680…06a0 20 2f 2a 20 64 61 79 73 20 73 69 6e 63 65 20 4a 61 6e 75 61 72 79 20 31 20 5b 30 2c 20 33 36 35 ┆ /* days since January 1 [0, 365┆
0x06a0…06c0 5d 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 74 6d 5f 69 73 64 73 ┆] */ int tm_isds┆
0x06c0…06e0 74 3b 20 2f 2a 20 66 6c 61 67 20 66 6f 72 20 64 61 79 6c 69 67 68 74 20 73 61 76 69 6e 67 73 20 ┆t; /* flag for daylight savings ┆
0x06e0…0700 74 69 6d 65 20 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 49 6e 20 61 64 ┆time */ }; In ad┆
0x0700…0720 64 69 74 69 6f 6e 20 74 6f 20 63 6f 6d 70 75 74 69 6e 67 20 74 68 65 20 63 61 6c 65 6e 64 61 72 ┆dition to computing the calendar┆
0x0720…0740 20 74 69 6d 65 2c 20 5f 08 6d 5f 08 6b 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 6e 6f 72 6d 61 6c ┆ time, _ m_ k_ t_ i_ m_ e normal┆
0x0740…0760 2d 0a 20 20 20 20 20 69 7a 65 73 20 74 68 65 20 73 75 70 70 6c 69 65 64 20 5f 08 74 5f 08 6d 20 ┆- izes the supplied _ t_ m ┆
0x0760…0780 73 74 72 75 63 74 75 72 65 2e 20 20 54 68 65 20 6f 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 73 20 ┆structure. The original values ┆
0x0780…07a0 6f 66 20 74 68 65 0a 20 20 20 20 20 5f 08 74 5f 08 6d 5f 5f 08 77 5f 08 64 5f 08 61 5f 08 79 20 ┆of the _ t_ m__ w_ d_ a_ y ┆
0x07a0…07c0 61 6e 64 20 5f 08 74 5f 08 6d 5f 5f 08 79 5f 08 64 5f 08 61 5f 08 79 20 63 6f 6d 70 6f 6e 65 6e ┆and _ t_ m__ y_ d_ a_ y componen┆
0x07c0…07e0 74 73 20 6f 66 20 74 68 65 20 73 74 72 75 63 74 75 72 65 20 61 72 65 20 69 67 6e 6f 72 65 64 2c ┆ts of the structure are ignored,┆
0x07e0…0800 0a 20 20 20 20 20 61 6e 64 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 73 20 6f 66 ┆ and the original values of┆
0x0800…0820 20 74 68 65 20 6f 74 68 65 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 61 72 65 20 6e 6f 74 20 72 65 ┆ the other components are not re┆
0x0820…0840 73 2d 0a 20 20 20 20 20 74 72 69 63 74 65 64 20 74 6f 20 74 68 65 20 72 61 6e 67 65 73 20 69 6e ┆s- tricted to the ranges in┆
0x0840…0860 64 69 63 61 74 65 64 20 69 6e 20 74 68 65 20 64 65 66 69 6e 69 74 69 6f 6e 20 6f 66 20 74 68 65 ┆dicated in the definition of the┆
0x0860…0880 0a 20 20 20 20 20 73 74 72 75 63 74 75 72 65 2e 20 20 4f 6e 20 73 75 63 63 65 73 73 66 75 6c 20 ┆ structure. On successful ┆
0x0880…08a0 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 74 68 65 20 76 61 6c 75 65 73 20 6f 66 20 74 68 65 0a 20 20 ┆completion, the values of the ┆
0x08a0…08c0 20 20 20 5f 08 74 5f 08 6d 5f 5f 08 77 5f 08 64 5f 08 61 5f 08 79 20 61 6e 64 20 5f 08 74 5f 08 ┆ _ t_ m__ w_ d_ a_ y and _ t_ ┆
0x08c0…08e0 6d 5f 5f 08 79 5f 08 64 5f 08 61 5f 08 79 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 61 72 65 20 73 65 ┆m__ y_ d_ a_ y components are se┆
0x08e0…0900 74 20 61 70 70 72 6f 70 72 69 61 74 65 6c 79 2c 20 61 6e 64 0a 20 20 20 20 20 74 68 65 20 6f 74 ┆t appropriately, and the ot┆
0x0900…0920 68 65 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 61 72 65 20 73 65 74 20 74 6f 20 72 65 70 72 65 73 ┆her components are set to repres┆
0x0920…0940 65 6e 74 20 74 68 65 20 73 70 65 63 69 66 69 65 64 0a 20 20 20 20 20 63 61 6c 65 6e 64 61 72 20 ┆ent the specified calendar ┆
0x0940…0960 74 69 6d 65 2c 20 62 75 74 20 77 69 74 68 20 74 68 65 69 72 20 76 61 6c 75 65 73 20 66 6f 72 63 ┆time, but with their values forc┆
0x0960…0980 65 64 20 74 6f 20 62 65 20 77 69 74 68 69 6e 20 74 68 65 0a 20 20 20 20 20 61 70 70 72 6f 70 72 ┆ed to be within the appropr┆
0x0980…09a0 69 61 74 65 20 72 61 6e 67 65 73 2e 20 20 54 68 65 20 66 69 6e 61 6c 20 76 61 6c 75 65 20 6f 66 ┆iate ranges. The final value of┆
0x09a0…09c0 20 5f 08 74 5f 08 6d 5f 5f 08 6d 5f 08 64 5f 08 61 5f 08 79 20 69 73 20 6e 6f 74 20 73 65 74 0a ┆ _ t_ m__ m_ d_ a_ y is not set ┆
0x09c0…09e0 20 20 20 20 20 75 6e 74 69 6c 20 5f 08 74 5f 08 6d 5f 5f 08 6d 5f 08 6f 5f 08 6e 20 61 6e 64 20 ┆ until _ t_ m__ m_ o_ n and ┆
0x09e0…0a00 5f 08 74 5f 08 6d 5f 5f 08 79 5f 08 65 5f 08 61 5f 08 72 20 61 72 65 20 64 65 74 65 72 6d 69 6e ┆_ t_ m__ y_ e_ a_ r are determin┆
0x0a00…0a20 65 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 6f 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 73 20 6f 66 ┆ed. The original values of┆
0x0a20…0a40 20 74 68 65 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 6d 61 79 20 62 65 20 65 69 74 68 65 72 20 67 72 ┆ the components may be either gr┆
0x0a40…0a60 65 61 74 65 72 0a 20 20 20 20 20 74 68 61 6e 20 6f 72 20 6c 65 73 73 20 74 68 61 6e 20 74 68 65 ┆eater than or less than the┆
0x0a60…0a80 20 73 70 65 63 69 66 69 65 64 20 72 61 6e 67 65 2e 20 20 46 6f 72 20 65 78 61 6d 70 6c 65 2c 20 ┆ specified range. For example, ┆
0x0a80…0aa0 61 0a 20 20 20 20 20 5f 08 74 5f 08 6d 5f 5f 08 68 5f 08 6f 5f 08 75 5f 08 72 20 6f 66 20 2d 31 ┆a _ t_ m__ h_ o_ u_ r of -1┆
0x0aa0…0ac0 20 6d 65 61 6e 73 20 31 20 68 6f 75 72 20 62 65 66 6f 72 65 20 6d 69 64 6e 69 67 68 74 2c 20 5f ┆ means 1 hour before midnight, _┆
0x0ac0…0ae0 08 74 5f 08 6d 5f 5f 08 6d 5f 08 64 5f 08 61 5f 08 79 20 6f 66 20 30 0a 20 20 20 20 20 6d 65 61 ┆ t_ m__ m_ d_ a_ y of 0 mea┆
0x0ae0…0b00 6e 73 20 74 68 65 20 64 61 79 20 70 72 65 63 65 64 69 6e 67 20 74 68 65 20 63 75 72 72 65 6e 74 ┆ns the day preceding the current┆
0x0b00…0b20 20 6d 6f 6e 74 68 2c 20 61 6e 64 20 5f 08 74 5f 08 6d 5f 5f 08 6d 5f 08 6f 5f 08 6e 20 6f 66 20 ┆ month, and _ t_ m__ m_ o_ n of ┆
0x0b20…0b40 2d 32 0a 20 20 20 20 20 6d 65 61 6e 73 20 32 20 6d 6f 6e 74 68 73 20 62 65 66 6f 72 65 20 4a 61 ┆-2 means 2 months before Ja┆
0x0b40…0b60 6e 75 61 72 79 20 6f 66 20 5f 08 74 5f 08 6d 5f 5f 08 79 5f 08 65 5f 08 61 5f 08 72 2e 0a 0a 20 ┆nuary of _ t_ m__ y_ e_ a_ r. ┆
0x0b60…0b80 20 20 20 20 49 66 20 5f 08 74 5f 08 6d 5f 5f 08 69 5f 08 73 5f 08 64 5f 08 73 5f 08 74 20 69 73 ┆ If _ t_ m__ i_ s_ d_ s_ t is┆
0x0b80…0ba0 20 70 6f 73 69 74 69 76 65 2c 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 73 20 61 ┆ positive, the original values a┆
0x0ba0…0bc0 72 65 20 61 73 73 75 6d 65 64 20 74 6f 0a 20 20 20 20 20 62 65 20 69 6e 20 74 68 65 20 61 6c 74 ┆re assumed to be in the alt┆
0x0bc0…0be0 65 72 6e 61 74 65 20 74 69 6d 65 7a 6f 6e 65 2e 20 20 49 66 20 69 74 20 74 75 72 6e 73 20 6f 75 ┆ernate timezone. If it turns ou┆
0x0be0…0c00 74 20 74 68 61 74 20 74 68 65 0a 20 20 20 20 20 61 6c 74 65 72 6e 61 74 65 20 74 69 6d 65 7a 6f ┆t that the alternate timezo┆
0x0c00…0c20 6e 65 20 69 73 20 6e 6f 74 20 76 61 6c 69 64 20 66 6f 72 20 74 68 65 20 63 6f 6d 70 75 74 65 64 ┆ne is not valid for the computed┆
0x0c20…0c40 20 63 61 6c 65 6e 64 61 72 0a 20 20 20 20 20 74 69 6d 65 2c 20 74 68 65 6e 20 74 68 65 20 63 6f ┆ calendar time, then the co┆
0x0c40…0c60 6d 70 6f 6e 65 6e 74 73 20 61 72 65 20 61 64 6a 75 73 74 65 64 20 74 6f 20 74 68 65 20 6d 61 69 ┆mponents are adjusted to the mai┆
0x0c60…0c80 6e 20 74 69 6d 65 7a 6f 6e 65 2e 0a 20 20 20 20 20 4c 69 6b 65 77 69 73 65 2c 20 69 66 20 5f 08 ┆n timezone. Likewise, if _ ┆
0x0c80…0ca0 74 5f 08 6d 5f 5f 08 69 5f 08 73 5f 08 64 5f 08 73 5f 08 74 20 69 73 20 7a 65 72 6f 2c 20 74 68 ┆t_ m__ i_ s_ d_ s_ t is zero, th┆
0x0ca0…0cc0 65 20 6f 72 69 67 69 6e 61 6c 20 76 61 6c 75 65 73 20 61 72 65 0a 20 20 20 20 20 61 73 73 75 6d ┆e original values are assum┆
0x0cc0…0ce0 65 64 20 74 6f 20 62 65 20 69 6e 20 74 68 65 20 6d 61 69 6e 20 74 69 6d 65 7a 6f 6e 65 20 61 6e ┆ed to be in the main timezone an┆
0x0ce0…0d00 64 20 61 72 65 20 63 6f 6e 76 65 72 74 65 64 20 74 6f 20 74 68 65 0a 20 20 20 20 20 61 6c 74 65 ┆d are converted to the alte┆
0x0d00…0d20 72 6e 61 74 65 20 74 69 6d 65 7a 6f 6e 65 20 69 66 20 74 68 65 20 6d 61 69 6e 20 74 69 6d 65 7a ┆rnate timezone if the main timez┆
0x0d20…0d40 6f 6e 65 20 69 73 20 6e 6f 74 20 76 61 6c 69 64 2e 20 20 49 66 0a 20 20 20 20 20 5f 08 74 5f 08 ┆one is not valid. If _ t_ ┆
0x0d40…0d60 6d 5f 5f 08 69 5f 08 73 5f 08 64 5f 08 73 5f 08 74 20 69 73 20 6e 65 67 61 74 69 76 65 2c 20 74 ┆m__ i_ s_ d_ s_ t is negative, t┆
0x0d60…0d80 68 65 20 63 6f 72 72 65 63 74 20 74 69 6d 65 7a 6f 6e 65 20 69 73 20 64 65 74 65 72 6d 69 6e 65 ┆he correct timezone is determine┆
0x0d80…0da0 64 20 61 6e 64 0a 20 20 20 20 20 74 68 65 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 61 72 65 20 6e 6f ┆d and the components are no┆
0x0da0…0dc0 74 20 61 64 6a 75 73 74 65 64 2e 0a 0a 20 20 20 20 20 4c 6f 63 61 6c 20 74 69 6d 65 7a 6f 6e 65 ┆t adjusted. Local timezone┆
0x0dc0…0de0 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 69 73 20 75 73 65 64 20 61 73 20 69 66 20 5f 08 6d 5f 08 ┆ information is used as if _ m_ ┆
0x0de0…0e00 6b 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 68 61 64 20 63 61 6c 6c 65 64 0a 20 20 20 20 20 5f 08 ┆k_ t_ i_ m_ e had called _ ┆
0x0e00…0e20 74 5f 08 7a 5f 08 73 5f 08 65 5f 08 74 2e 0a 0a 0a 0a 0a 0a 0a 52 08 52 08 52 08 52 45 08 45 08 ┆t_ z_ s_ e_ t. R R R RE E ┆
0x0e20…0e40 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 ┆E ET T T TU U U UR R R RN N N N ┆
0x0e40…0e60 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 ┆V V V VA A A AL L L LU U U UE E ┆
0x0e60…0e80 45 08 45 0a 20 20 20 20 20 5f 08 6d 5f 08 6b 5f 08 74 5f 08 69 5f 08 6d 5f 08 65 20 72 65 74 75 ┆E E _ m_ k_ t_ i_ m_ e retu┆
0x0e80…0ea0 72 6e 73 20 74 68 65 20 73 70 65 63 69 66 69 65 64 20 63 61 6c 65 6e 64 61 72 20 74 69 6d 65 2e ┆rns the specified calendar time.┆
0x0ea0…0ec0 20 20 49 66 20 74 68 65 20 63 61 6c 65 6e 64 61 72 0a 20 20 20 20 20 74 69 6d 65 20 63 61 6e 6e ┆ If the calendar time cann┆
0x0ec0…0ee0 6f 74 20 62 65 20 72 65 70 72 65 73 65 6e 74 65 64 2c 20 74 68 65 20 66 75 6e 63 74 69 6f 6e 20 ┆ot be represented, the function ┆
0x0ee0…0f00 72 65 74 75 72 6e 73 20 74 68 65 20 76 61 6c 75 65 0a 20 20 20 20 20 28 5f 08 74 5f 08 69 5f 08 ┆returns the value (_ t_ i_ ┆
0x0f00…0f20 6d 5f 08 65 5f 5f 08 74 29 2d 31 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 ┆m_ e__ t)-1. E E E ER R R RR R ┆
0x0f20…0f40 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 4e 6f ┆R RO O O OR R R RS S S S No┆
0x0f40…0f60 20 65 72 72 6f 72 73 20 61 72 65 20 64 65 66 69 6e 65 64 2e 0a 0a 45 08 45 08 45 08 45 58 08 58 ┆ errors are defined. E E E EX X┆
0x0f60…0f80 08 58 08 58 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 50 08 50 08 50 08 50 4c 08 4c 08 4c 08 4c ┆ X XA A A AM M M MP P P PL L L L┆
0x0f80…0fa0 45 08 45 08 45 08 45 0a 20 20 20 20 20 57 68 61 74 20 64 61 79 20 6f 66 20 74 68 65 20 77 65 65 ┆E E E E What day of the wee┆
0x0fa0…0fc0 6b 20 69 73 20 4a 75 6c 79 20 34 2c 20 32 30 30 31 3f 0a 0a 20 20 20 20 20 20 20 20 20 20 23 69 ┆k is July 4, 2001? #i┆
0x0fc0…0fe0 6e 63 6c 75 64 65 20 3c 73 74 64 69 6f 2e 68 3e 0a 20 20 20 20 20 20 20 20 20 20 23 69 6e 63 6c ┆nclude <stdio.h> #incl┆
0x0fe0…1000 75 64 65 20 3c 74 69 6d 65 2e 68 3e 0a 0a 20 20 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 63 ┆ude <time.h> static c┆
0x1000…1020 68 61 72 20 2a 63 6f 6e 73 74 20 77 64 61 79 5b 5d 20 3d 20 7b 0a 20 20 20 20 20 20 20 20 20 20 ┆har *const wday[] = { ┆
0x1020…1040 20 20 20 20 20 22 53 75 6e 64 61 79 22 2c 20 22 4d 6f 6e 64 61 79 22 2c 20 22 54 75 65 73 64 61 ┆ "Sunday", "Monday", "Tuesda┆
0x1040…1060 79 22 2c 20 22 57 65 64 6e 65 73 64 61 79 22 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆y", "Wednesday", ┆
0x1060…1080 22 54 68 75 72 73 64 61 79 22 2c 20 22 46 72 69 64 61 79 22 2c 20 22 53 61 74 75 72 64 61 79 22 ┆"Thursday", "Friday", "Saturday"┆
0x1080…10a0 2c 20 22 2d 75 6e 6b 6e 6f 77 6e 2d 22 0a 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 20 20 20 20 20 ┆, "-unknown-" }; ┆
0x10a0…10c0 20 20 20 20 20 73 74 72 75 63 74 20 74 6d 20 74 69 6d 65 5f 73 74 72 3b 0a 20 20 20 20 20 20 20 ┆ struct tm time_str; ┆
0x10c0…10e0 20 20 20 2f 2a 2e 2e 2e 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d ┆ /*...*/ time_str.tm┆
0x10e0…1100 5f 79 65 61 72 20 20 20 20 3d 20 32 30 30 31 20 2d 20 31 39 30 30 3b 0a 20 20 20 20 20 20 20 20 ┆_year = 2001 - 1900; ┆
0x1100…1120 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 6d 6f 6e 20 20 20 20 20 3d 20 37 20 2d 20 31 3b 0a 20 ┆ time_str.tm_mon = 7 - 1; ┆
0x1120…1140 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 6d 64 61 79 20 20 20 20 3d 20 34 ┆ time_str.tm_mday = 4┆
0x1140…1160 3b 0a 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 68 6f 75 72 20 20 20 20 ┆; time_str.tm_hour ┆
0x1160…1180 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 6d 69 6e 20 20 ┆= 0; time_str.tm_min ┆
0x1180…11a0 20 20 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 73 65 ┆ = 0; time_str.tm_se┆
0x11a0…11c0 63 20 20 20 20 20 20 20 20 20 20 3d 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 ┆c = 1; time_s┆
0x11c0…11e0 74 72 2e 74 6d 5f 69 73 64 73 74 20 20 20 3d 20 2d 31 3b 0a 20 20 20 20 20 20 20 20 20 20 69 66 ┆tr.tm_isdst = -1; if┆
0x11e0…1200 20 28 6d 6b 74 69 6d 65 28 26 74 69 6d 65 5f 73 74 72 29 3d 3d 20 2d 31 29 0a 20 20 20 20 20 20 ┆ (mktime(&time_str)== -1) ┆
0x1200…1220 20 20 20 20 20 20 20 20 74 69 6d 65 5f 73 74 72 2e 74 6d 5f 77 64 61 79 3d 37 3b 0a 20 20 20 20 ┆ time_str.tm_wday=7; ┆
0x1220…1240 20 20 20 20 20 20 70 72 69 6e 74 66 28 22 25 73 5c 6e 22 2c 20 77 64 61 79 5b 74 69 6d 65 5f 73 ┆ printf("%s\n", wday[time_s┆
0x1240…1260 74 72 2e 74 6d 5f 77 64 61 79 5d 29 3b 0a 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 ┆tr.tm_wday]); S S S SE E E EE ┆
0x1260…1280 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f ┆E E E A A A AL L L LS S S SO O O┆
0x1280…12a0 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 74 69 6d 65 0a 20 ┆ O System Calls (2): time ┆
0x12a0…12c0 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 74 7a 73 65 74 ┆ Library Functions (3): tzset┆
0x12c0…12e0 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 45 08 45 08 45 08 45 53 08 ┆ N N N NO O O OT T T TE E E ES ┆
0x12e0…1300 53 08 53 08 53 0a 20 20 20 20 20 5f 08 74 5f 08 6d 5f 5f 08 79 5f 08 65 5f 08 61 5f 08 72 20 6f ┆S S S _ t_ m__ y_ e_ a_ r o┆
0x1300…1320 66 20 74 68 65 20 5f 08 74 5f 08 6d 20 73 74 72 75 63 74 75 72 65 20 6d 75 73 74 20 62 65 20 66 ┆f the _ t_ m structure must be f┆
0x1320…1340 6f 72 20 79 65 61 72 20 31 39 37 30 20 6f 72 20 6c 61 74 65 72 2e 0a 20 20 20 20 20 43 61 6c 65 ┆or year 1970 or later. Cale┆
0x1340…1360 6e 64 61 72 20 74 69 6d 65 73 20 62 65 66 6f 72 65 20 30 30 3a 30 30 3a 30 30 20 55 54 43 2c 20 ┆ndar times before 00:00:00 UTC, ┆
0x1360…1380 4a 61 6e 75 61 72 79 20 31 2c 20 31 39 37 30 20 6f 72 20 61 66 74 65 72 0a 20 20 20 20 20 30 33 ┆January 1, 1970 or after 03┆
0x1380…13a0 3a 31 34 3a 30 37 20 55 54 43 2c 20 4a 61 6e 75 61 72 79 20 31 39 2c 20 32 30 33 38 20 63 61 6e ┆:14:07 UTC, January 19, 2038 can┆
0x13a0…13c0 6e 6f 74 20 62 65 20 72 65 70 72 65 73 65 6e 74 65 64 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 ┆not be represented. December 19┆
0x13c0…13e0 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 ┆90 TX ┆
0x13e0…1400 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆Programmer's Reference ┆
0x1400…1409 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆