|
|
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: g
Length: 9467 (0x24fb)
Names: »getdate.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/getdate.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 09 09 4c 69 62 72 61 72 79 09 46 75 6e 63 74 69 6f 6e 73 09 20 20 20 20 ┆ u_ a_ l Library Functions ┆
0x0040…0060 20 20 20 67 65 74 64 61 74 65 28 33 29 0a 0a 0a 0a 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d ┆ getdate(3) N N N NA A A AM┆
0x0060…0080 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 20 20 67 65 74 64 61 74 65 20 2d 20 63 6f 6e ┆ M M ME E E E getdate - con┆
0x0080…00a0 76 65 72 74 20 75 73 65 72 20 66 6f 72 6d 61 74 20 64 61 74 65 09 61 6e 64 20 74 69 6d 65 0a 0a ┆vert user format date and time ┆
0x00a0…00c0 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 ┆
0x00c0…00e0 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 ┆
0x00e0…0100 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 ┆
0x0100…0120 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 ┆
0x0120…0140 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> > > ┆
0x0140…0160 3e 0a 0a 20 20 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 ┆> s s s st t t tr r r ru u┆
0x0160…0180 08 75 08 75 63 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 ┆ u uc c c ct t t t t t t tm m m ┆
0x0180…01a0 6d 20 2a 08 2a 08 2a 08 2a 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 64 08 ┆m * * * *g g g ge e e et t t td ┆
0x01a0…01c0 64 08 64 08 64 61 08 61 08 61 08 61 74 08 74 08 74 08 74 65 08 65 08 65 08 65 28 08 28 08 28 08 ┆d d da a a at t t te e e e( ( ( ┆
0x01c0…01e0 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 69 08 69 08 69 08 69 6e 08 6e ┆(s s s st t t tr r r ri i i in n┆
0x01e0…0200 08 6e 08 6e 67 08 67 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 ┆ n ng g g g) ) ) ) c c c ch┆
0x0200…0220 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 73 08 73 08 ┆ h h ha a a ar r r r * * * *s s ┆
0x0220…0240 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 67 ┆s st t t tr r r ri i i in n n ng┆
0x0240…0260 08 67 08 67 08 67 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 65 08 65 08 65 08 65 78 08 78 08 78 ┆ g g g; ; ; ; e e e ex x x┆
0x0260…0280 08 78 74 08 74 08 74 08 74 65 08 65 08 65 08 65 72 08 72 08 72 08 72 6e 08 6e 08 6e 08 6e 20 69 ┆ xt t t te e e er r r rn n n n i┆
0x0280…02a0 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 09 67 08 67 08 67 08 67 65 08 65 08 ┆ i i in n n nt t t t g g g ge e ┆
0x02a0…02c0 65 08 65 74 08 74 08 74 08 74 64 08 64 08 64 08 64 61 08 61 08 61 08 61 74 08 74 08 74 08 74 65 ┆e et t t td d d da a a at t t te┆
0x02c0…02e0 08 65 08 65 08 65 5f 08 5f 08 5f 08 5f 65 08 65 08 65 08 65 72 08 72 08 72 08 72 72 08 72 08 72 ┆ e e e_ _ _ _e e e er r r rr r r┆
0x02e0…0300 08 72 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 ┆ r; ; ; ; D D D DE E E ES S S S┆
0x0300…0320 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 ┆C C C CR R R RI I I IP P P PT T ┆
0x0320…0340 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 ┆T TI I I IO O O ON N N N _ ┆
0x0340…0360 67 5f 08 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 20 63 6f 6e 76 65 72 74 73 20 75 73 65 ┆g_ e_ t_ d_ a_ t_ e converts use┆
0x0360…0380 72 2d 64 65 66 69 6e 61 62 6c 65 20 64 61 74 65 20 61 6e 64 2f 6f 72 20 74 69 6d 65 20 73 70 65 ┆r-definable date and/or time spe┆
0x0380…03a0 63 69 66 69 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 73 20 70 6f 69 6e 74 65 64 20 74 6f 20 62 79 ┆cifica- tions pointed to by┆
0x03a0…03c0 20 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 09 69 6e 74 6f 20 61 20 74 08 74 08 74 ┆ _ s_ t_ r_ i_ n_ g into a t t t┆
0x03c0…03e0 08 74 6d 08 6d 08 6d 08 6d 20 73 74 72 75 63 74 75 72 65 2e 20 20 54 68 65 20 73 74 72 75 63 2d ┆ tm m m m structure. The struc-┆
0x03e0…0400 0a 20 20 20 20 20 74 75 72 65 20 64 65 63 6c 61 72 61 74 69 6f 6e 20 69 73 20 69 6e 20 74 68 65 ┆ ture declaration is in the┆
0x0400…0420 09 3c 08 3c 08 3c 08 3c 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┆
0x0420…0440 08 65 08 65 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 20 68 65 61 64 65 72 ┆ e e. . . .h h h h> > > > header┆
0x0440…0460 09 66 69 6c 65 2e 0a 0a 20 20 20 20 20 55 73 65 72 2d 73 75 70 70 6c 69 65 64 20 74 65 6d 70 6c ┆ file. User-supplied templ┆
0x0460…0480 61 74 65 73 20 61 72 65 20 75 73 65 64 20 74 6f 20 70 61 72 73 65 20 61 6e 64 20 69 6e 74 65 72 ┆ates are used to parse and inter┆
0x0480…04a0 70 72 65 74 20 74 68 65 0a 20 20 20 20 20 69 6e 70 75 74 20 73 74 72 69 6e 67 2e 20 20 54 68 65 ┆pret the input string. The┆
0x04a0…04c0 09 74 65 6d 70 6c 61 74 65 73 20 61 72 65 20 74 65 78 74 20 66 69 6c 65 73 20 63 72 65 61 74 65 ┆ templates are text files create┆
0x04c0…04e0 64 20 62 79 20 74 68 65 0a 20 20 20 20 20 75 73 65 72 20 61 6e 64 20 69 64 65 6e 74 69 66 69 65 ┆d by the user and identifie┆
0x04e0…0500 64 20 76 69 61 20 74 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 44 ┆d via the environment variable D┆
0x0500…0520 41 54 45 4d 53 4b 2e 0a 20 20 20 20 20 45 61 63 68 20 6c 69 6e 65 20 69 6e 20 74 68 65 20 74 65 ┆ATEMSK. Each line in the te┆
0x0520…0540 6d 70 6c 61 74 65 20 72 65 70 72 65 73 65 6e 74 73 20 61 6e 20 61 63 63 65 70 74 61 62 6c 65 09 ┆mplate represents an acceptable ┆
0x0540…0560 64 61 74 65 0a 20 20 20 20 20 61 6e 64 2f 6f 72 20 74 69 6d 65 20 73 70 65 63 69 66 69 63 61 74 ┆date and/or time specificat┆
0x0560…0580 69 6f 6e 20 75 73 69 6e 67 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 73 61 6d 65 20 66 69 65 6c 64 ┆ion using some of the same field┆
0x0580…05a0 0a 20 20 20 20 20 64 65 73 63 72 69 70 74 6f 72 73 20 61 73 20 74 68 65 09 6f 6e 65 73 20 75 73 ┆ descriptors as the ones us┆
0x05a0…05c0 65 64 20 62 79 20 74 68 65 20 5f 08 64 5f 08 61 5f 08 74 5f 08 65 20 63 6f 6d 6d 61 6e 64 2e 09 ┆ed by the _ d_ a_ t_ e command. ┆
0x05c0…05e0 54 68 65 20 66 69 72 73 74 0a 20 20 20 20 20 6c 69 6e 65 20 69 6e 20 74 68 65 20 74 65 6d 70 6c ┆The first line in the templ┆
0x05e0…0600 61 74 65 20 74 68 61 74 20 6d 61 74 63 68 65 73 20 74 68 65 20 69 6e 70 75 74 20 73 70 65 63 69 ┆ate that matches the input speci┆
0x0600…0620 66 69 63 61 74 69 6f 6e 20 69 73 0a 20 20 20 20 20 75 73 65 64 20 66 6f 72 20 69 6e 74 65 72 70 ┆fication is used for interp┆
0x0620…0640 72 65 74 61 74 69 6f 6e 20 61 6e 64 20 63 6f 6e 76 65 72 73 69 6f 6e 20 69 6e 74 6f 20 74 68 65 ┆retation and conversion into the┆
0x0640…0660 20 69 6e 74 65 72 6e 61 6c 0a 20 20 20 20 20 74 69 6d 65 20 66 6f 72 6d 61 74 2e 20 20 49 66 20 ┆ internal time format. If ┆
0x0660…0680 73 75 63 63 65 73 73 66 75 6c 2c 20 74 68 65 20 66 75 6e 63 74 69 6f 6e 20 5f 08 67 5f 08 65 5f ┆successful, the function _ g_ e_┆
0x0680…06a0 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 20 72 65 74 75 72 6e 73 20 61 0a 20 20 20 20 20 70 6f ┆ t_ d_ a_ t_ e returns a po┆
0x06a0…06c0 69 6e 74 65 72 20 74 6f 09 61 20 74 08 74 08 74 08 74 6d 08 6d 08 6d 08 6d 20 73 74 72 75 63 74 ┆inter to a t t t tm m m m struct┆
0x06c0…06e0 75 72 65 3b 09 6f 74 68 65 72 77 69 73 65 2c 20 69 74 20 72 65 74 75 72 6e 73 20 4e 55 4c 4c 20 ┆ure; otherwise, it returns NULL ┆
0x06e0…0700 61 6e 64 0a 20 20 20 20 20 73 65 74 73 20 74 68 65 20 67 6c 6f 62 61 6c 20 76 61 72 69 61 62 6c ┆and sets the global variabl┆
0x0700…0720 65 20 5f 08 67 5f 08 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 5f 5f 08 65 5f 08 72 5f 08 ┆e _ g_ e_ t_ d_ a_ t_ e__ e_ r_ ┆
0x0720…0740 72 20 74 6f 20 69 6e 64 69 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a 20 20 20 20 20 54 ┆r to indicate the error. T┆
0x0740…0760 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 66 69 65 6c 64 20 64 65 73 63 72 69 70 74 6f 72 73 20 61 ┆he following field descriptors a┆
0x0760…0780 72 65 20 73 75 70 70 6f 72 74 65 64 3a 0a 0a 09 20 20 25 08 25 08 25 08 25 25 08 25 08 25 08 25 ┆re supported: % % % %% % % %┆
0x0780…07a0 20 20 20 73 61 6d 65 20 61 73 20 25 08 25 08 25 08 25 0a 09 20 20 25 08 25 08 25 08 25 61 08 61 ┆ same as % % % % % % % %a a┆
0x07a0…07c0 08 61 08 61 20 20 20 61 62 62 72 65 76 69 61 74 65 64 20 77 65 65 6b 64 61 79 20 6e 61 6d 65 0a ┆ a a abbreviated weekday name ┆
0x07c0…07e0 09 20 20 25 08 25 08 25 08 25 41 08 41 08 41 08 41 20 20 20 66 75 6c 6c 20 77 65 65 6b 64 61 79 ┆ % % % %A A A A full weekday┆
0x07e0…0800 20 6e 61 6d 65 0a 09 20 20 25 08 25 08 25 08 25 62 08 62 08 62 08 62 20 20 20 61 62 62 72 65 76 ┆ name % % % %b b b b abbrev┆
0x0800…0820 69 61 74 65 64 20 6d 6f 6e 74 68 20 6e 61 6d 65 0a 09 20 20 25 08 25 08 25 08 25 42 08 42 08 42 ┆iated month name % % % %B B B┆
0x0820…0840 08 42 20 20 20 66 75 6c 6c 20 6d 6f 6e 74 68 20 6e 61 6d 65 0a 09 20 20 25 08 25 08 25 08 25 63 ┆ B full month name % % % %c┆
0x0840…0860 08 63 08 63 08 63 20 20 20 6c 6f 63 61 6c 65 27 73 09 61 70 70 72 6f 70 72 69 61 74 65 20 64 61 ┆ c c c locale's appropriate da┆
0x0860…0880 74 65 20 61 6e 64 20 74 69 6d 65 20 72 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 0a 09 20 20 25 08 ┆te and time representation % ┆
0x0880…08a0 25 08 25 08 25 64 08 64 08 64 08 64 20 20 20 64 61 79 20 6f 66 20 6d 6f 6e 74 68 20 28 30 31 2d ┆% % %d d d d day of month (01-┆
0x08a0…08c0 33 31 3b 20 74 68 65 09 6c 65 61 64 69 6e 67 09 30 20 69 73 20 6f 70 74 69 6f 6e 61 6c 29 0a 09 ┆31; the leading 0 is optional) ┆
0x08c0…08e0 20 20 25 08 25 08 25 08 25 65 08 65 08 65 08 65 20 20 20 73 61 6d 65 20 61 73 20 25 08 25 08 25 ┆ % % % %e e e e same as % % %┆
0x08e0…0900 08 25 64 08 64 08 64 08 64 0a 09 20 20 25 08 25 08 25 08 25 44 08 44 08 44 08 44 20 20 20 64 61 ┆ %d d d d % % % %D D D D da┆
0x0900…0920 74 65 20 61 73 20 25 08 25 08 25 08 25 6d 08 6d 08 6d 08 6d 2f 08 2f 08 2f 08 2f 25 08 25 08 25 ┆te as % % % %m m m m/ / / /% % %┆
0x0920…0940 08 25 64 08 64 08 64 08 64 2f 08 2f 08 2f 08 2f 25 08 25 08 25 08 25 79 08 79 08 79 08 79 0a 09 ┆ %d d d d/ / / /% % % %y y y y ┆
0x0940…0960 20 20 25 08 25 08 25 08 25 68 08 68 08 68 08 68 20 20 20 61 62 62 72 65 76 69 61 74 65 64 20 6d ┆ % % % %h h h h abbreviated m┆
0x0960…0980 6f 6e 74 68 20 6e 61 6d 65 0a 09 20 20 25 08 25 08 25 08 25 48 08 48 08 48 08 48 20 20 20 68 6f ┆onth name % % % %H H H H ho┆
0x0980…09a0 75 72 20 28 30 30 2d 32 33 29 0a 09 20 20 25 08 25 08 25 08 25 49 08 49 08 49 08 49 20 20 20 68 ┆ur (00-23) % % % %I I I I h┆
0x09a0…09c0 6f 75 72 20 28 30 31 2d 31 32 29 0a 09 20 20 25 08 25 08 25 08 25 6d 08 6d 08 6d 08 6d 20 20 20 ┆our (01-12) % % % %m m m m ┆
0x09c0…09e0 6d 6f 6e 74 68 20 6e 75 6d 62 65 72 20 28 30 31 2d 31 32 29 0a 09 20 20 25 08 25 08 25 08 25 4d ┆month number (01-12) % % % %M┆
0x09e0…0a00 08 4d 08 4d 08 4d 20 20 20 6d 69 6e 75 74 65 20 28 30 30 2d 35 39 29 0a 09 20 20 25 08 25 08 25 ┆ M M M minute (00-59) % % %┆
0x0a00…0a20 08 25 6e 08 6e 08 6e 08 6e 20 20 20 73 61 6d 65 20 61 73 20 5c 08 5c 08 5c 08 5c 6e 08 6e 08 6e ┆ %n n n n same as \ \ \ \n n n┆
0x0a20…0a40 08 6e 0a 09 20 20 25 08 25 08 25 08 25 70 08 70 08 70 08 70 20 20 20 6c 6f 63 61 6c 65 27 73 09 ┆ n % % % %p p p p locale's ┆
0x0a40…0a60 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 65 69 74 68 65 72 20 41 4d 09 6f 72 20 50 4d 0a 09 20 ┆equivalent of either AM or PM ┆
0x0a60…0a80 20 25 08 25 08 25 08 25 72 08 72 08 72 08 72 20 20 20 74 69 6d 65 20 61 73 20 25 08 25 08 25 08 ┆ % % % %r r r r time as % % % ┆
0x0a80…0aa0 25 49 08 49 08 49 08 49 3a 08 3a 08 3a 08 3a 25 08 25 08 25 08 25 4d 08 4d 08 4d 08 4d 3a 08 3a ┆%I I I I: : : :% % % %M M M M: :┆
0x0aa0…0ac0 08 3a 08 3a 25 08 25 08 25 08 25 53 08 53 08 53 08 53 09 25 08 25 08 25 08 25 70 08 70 08 70 08 ┆ : :% % % %S S S S % % % %p p p ┆
0x0ac0…0ae0 70 0a 09 20 20 25 08 25 08 25 08 25 52 08 52 08 52 08 52 20 20 20 74 69 6d 65 20 61 73 20 25 08 ┆p % % % %R R R R time as % ┆
0x0ae0…0b00 25 08 25 08 25 48 08 48 08 48 08 48 3a 08 3a 08 3a 08 3a 25 08 25 08 25 08 25 4d 08 4d 08 4d 08 ┆% % %H H H H: : : :% % % %M M M ┆
0x0b00…0b20 4d 0a 09 20 20 25 08 25 08 25 08 25 53 08 53 08 53 08 53 20 20 20 73 65 63 6f 6e 64 73 20 28 30 ┆M % % % %S S S S seconds (0┆
0x0b20…0b40 30 2d 35 39 29 0a 09 20 20 25 08 25 08 25 08 25 74 08 74 08 74 08 74 20 20 20 69 6e 73 65 72 74 ┆0-59) % % % %t t t t insert┆
0x0b40…0b60 20 61 09 74 61 62 0a 09 20 20 25 08 25 08 25 08 25 54 08 54 08 54 08 54 20 20 20 74 69 6d 65 20 ┆ a tab % % % %T T T T time ┆
0x0b60…0b80 61 73 20 25 08 25 08 25 08 25 48 08 48 08 48 08 48 3a 08 3a 08 3a 08 3a 25 08 25 08 25 08 25 4d ┆as % % % %H H H H: : : :% % % %M┆
0x0b80…0ba0 08 4d 08 4d 08 4d 3a 08 3a 08 3a 08 3a 25 08 25 08 25 08 25 53 08 53 08 53 08 53 0a 09 20 20 25 ┆ M M M: : : :% % % %S S S S %┆
0x0ba0…0bc0 08 25 08 25 08 25 77 08 77 08 77 08 77 20 20 20 77 65 65 6b 64 61 79 20 6e 75 6d 62 65 72 20 28 ┆ % % %w w w w weekday number (┆
0x0bc0…0be0 30 2d 36 3b 20 53 75 6e 64 61 79 20 3d 20 30 29 0a 09 20 20 25 08 25 08 25 08 25 78 08 78 08 78 ┆0-6; Sunday = 0) % % % %x x x┆
0x0be0…0c00 08 78 20 20 20 6c 6f 63 61 6c 65 27 73 09 61 70 70 72 6f 70 72 69 61 74 65 20 64 61 74 65 20 72 ┆ x locale's appropriate date r┆
0x0c00…0c20 65 70 72 65 73 65 6e 74 61 74 69 6f 6e 0a 09 20 20 25 08 25 08 25 08 25 58 08 58 08 58 08 58 20 ┆epresentation % % % %X X X X ┆
0x0c20…0c40 20 20 6c 6f 63 61 6c 65 27 73 09 61 70 70 72 6f 70 72 69 61 74 65 20 74 69 6d 65 20 72 65 70 72 ┆ locale's appropriate time repr┆
0x0c40…0c60 65 73 65 6e 74 61 74 69 6f 6e 0a 09 20 20 25 08 25 08 25 08 25 79 08 79 08 79 08 79 20 20 20 79 ┆esentation % % % %y y y y y┆
0x0c60…0c80 65 61 72 20 77 69 74 68 20 63 65 6e 74 75 72 79 20 28 30 30 2d 39 39 29 0a 09 20 20 25 08 25 08 ┆ear with century (00-99) % % ┆
0x0c80…0ca0 25 08 25 59 08 59 08 59 08 59 20 20 20 79 65 61 72 20 61 73 20 63 08 63 08 63 08 63 63 08 63 08 ┆% %Y Y Y Y year as c c c cc c ┆
0x0ca0…0cc0 63 08 63 79 08 79 08 79 08 79 79 08 79 08 79 08 79 20 28 65 2e 67 2e 2c 20 31 39 38 36 29 0a 09 ┆c cy y y yy y y y (e.g., 1986) ┆
0x0cc0…0ce0 20 20 25 08 25 08 25 08 25 5a 08 5a 08 5a 08 5a 20 20 20 74 69 6d 65 20 7a 6f 6e 65 20 6e 61 6d ┆ % % % %Z Z Z Z time zone nam┆
0x0ce0…0d00 65 20 6f 72 20 6e 6f 20 63 68 61 72 61 63 74 65 72 73 20 69 66 20 6e 6f 20 74 69 6d 65 20 7a 6f ┆e or no characters if no time zo┆
0x0d00…0d20 6e 65 0a 09 20 20 20 20 20 20 20 65 78 69 73 74 73 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 54 68 ┆ne exists Th┆
0x0d20…0d40 65 20 6d 6f 6e 74 68 20 61 6e 64 20 77 65 65 6b 64 61 79 20 6e 61 6d 65 73 20 63 61 6e 20 63 6f ┆e month and weekday names can co┆
0x0d40…0d60 6e 73 69 73 74 20 6f 66 09 61 6e 79 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 0a 20 20 20 20 20 6f 66 ┆nsist of any combination of┆
0x0d60…0d80 09 75 70 70 65 72 20 61 6e 64 20 6c 6f 77 65 72 09 63 61 73 65 20 6c 65 74 74 65 72 73 2e 20 20 ┆ upper and lower case letters. ┆
0x0d80…0da0 54 68 65 20 75 73 65 72 09 63 61 6e 20 72 65 71 75 65 73 74 20 74 68 61 74 0a 20 20 20 20 20 74 ┆The user can request that t┆
0x0da0…0dc0 68 65 20 69 6e 70 75 74 20 64 61 74 65 20 6f 72 20 74 69 6d 65 20 73 70 65 63 69 66 69 63 61 74 ┆he input date or time specificat┆
0x0dc0…0de0 69 6f 6e 20 62 65 20 69 6e 09 61 20 73 70 65 63 69 66 69 63 0a 20 20 20 20 20 6c 61 6e 67 75 61 ┆ion be in a specific langua┆
0x0de0…0e00 67 65 20 62 79 20 73 65 74 74 69 6e 67 20 74 68 65 20 63 61 74 65 67 6f 72 69 65 73 09 4c 43 5f ┆ge by setting the categories LC_┆
0x0e00…0e20 54 49 4d 45 09 61 6e 64 20 4c 43 5f 43 54 59 50 45 20 6f 66 0a 20 20 20 20 20 5f 08 73 5f 08 65 ┆TIME and LC_CTYPE of _ s_ e┆
0x0e20…0e40 5f 08 74 5f 08 6c 5f 08 6f 5f 08 63 5f 08 61 5f 08 6c 5f 08 65 2e 0a 0a 20 20 20 20 20 54 68 65 ┆_ t_ l_ o_ c_ a_ l_ e. The┆
0x0e40…0e60 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 78 61 6d 70 6c 65 20 73 68 6f 77 73 20 74 68 65 20 70 6f 73 ┆ following example shows the pos┆
0x0e60…0e80 73 69 62 6c 65 20 63 6f 6e 74 65 6e 74 73 20 6f 66 20 61 20 74 65 6d 2d 0a 20 20 20 20 20 70 6c ┆sible contents of a tem- pl┆
0x0e80…0ea0 61 74 65 3a 0a 0a 09 20 20 25 6d 0a 09 20 20 25 41 20 25 42 09 25 64 20 25 59 2c 20 25 48 3a 25 ┆ate: %m %A %B %d %Y, %H:%┆
0x0ea0…0ec0 4d 3a 25 53 0a 09 20 20 25 41 0a 09 20 20 25 42 0a 09 20 20 25 6d 2f 25 64 2f 25 79 20 25 49 20 ┆M:%S %A %B %m/%d/%y %I ┆
0x0ec0…0ee0 25 70 0a 09 20 20 25 64 2c 25 6d 2c 25 59 20 25 48 3a 25 4d 0a 09 20 20 61 74 20 25 41 09 74 68 ┆%p %d,%m,%Y %H:%M at %A th┆
0x0ee0…0f00 65 20 25 64 73 74 20 6f 66 20 25 42 20 69 6e 20 25 59 0a 09 20 20 72 75 6e 20 6a 6f 62 20 61 74 ┆e %dst of %B in %Y run job at┆
0x0f00…0f20 20 25 49 09 25 70 2c 25 42 20 25 64 6e 64 0a 09 20 20 25 41 20 64 65 6e 20 25 64 2e 20 25 42 09 ┆ %I %p,%B %dnd %A den %d. %B ┆
0x0f20…0f40 25 59 20 25 48 2e 25 4d 20 55 68 72 0a 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 ┆%Y %H.%M Uhr The following┆
0x0f40…0f60 20 61 72 65 20 65 78 61 6d 70 6c 65 73 09 6f 66 20 76 61 6c 69 64 20 69 6e 70 75 74 20 73 70 65 ┆ are examples of valid input spe┆
0x0f60…0f80 63 69 66 69 63 61 74 69 6f 6e 73 20 66 6f 72 0a 20 20 20 20 20 74 68 65 20 61 62 6f 76 65 20 74 ┆cifications for the above t┆
0x0f80…0fa0 65 6d 70 6c 61 74 65 3a 0a 0a 09 20 20 67 65 74 64 61 74 65 28 22 31 30 2f 31 2f 38 37 20 34 20 ┆emplate: getdate("10/1/87 4 ┆
0x0fa0…0fc0 50 4d 22 29 0a 09 20 20 67 65 74 64 61 74 65 28 22 46 72 69 64 61 79 22 29 0a 09 20 20 67 65 74 ┆PM") getdate("Friday") get┆
0x0fc0…0fe0 64 61 74 65 28 22 46 72 69 64 61 79 20 53 65 70 74 65 6d 62 65 72 20 31 39 20 31 39 38 37 2c 20 ┆date("Friday September 19 1987, ┆
0x0fe0…1000 31 30 3a 33 30 3a 33 30 22 29 0a 09 20 20 67 65 74 64 61 74 65 28 22 32 34 2c 39 2c 31 39 38 36 ┆10:30:30") getdate("24,9,1986┆
0x1000…1020 20 31 30 3a 33 30 22 29 0a 09 20 20 67 65 74 64 61 74 65 28 22 61 74 20 6d 6f 6e 64 61 79 20 74 ┆ 10:30") getdate("at monday t┆
0x1020…1040 68 65 20 31 73 74 20 6f 66 09 64 65 63 65 6d 62 65 72 20 69 6e 20 31 39 38 36 22 29 0a 09 20 20 ┆he 1st of december in 1986") ┆
0x1040…1060 67 65 74 64 61 74 65 28 22 72 75 6e 20 6a 6f 62 20 61 74 20 33 09 50 4d 2c 20 64 65 63 65 6d 62 ┆getdate("run job at 3 PM, decemb┆
0x1060…1080 65 72 20 25 32 6e 64 22 29 0a 0a 20 20 20 20 20 49 66 09 74 68 65 20 4c 41 4e 47 20 65 6e 76 69 ┆er %2nd") If the LANG envi┆
0x1080…10a0 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 69 73 20 73 65 74 20 74 6f 09 5f 08 67 5f 08 ┆ronment variable is set to _ g_ ┆
0x10a0…10c0 65 5f 08 72 5f 08 6d 5f 08 61 5f 08 6e 2c 09 74 68 65 20 66 6f 6c 2d 0a 20 20 20 20 20 6c 6f 77 ┆e_ r_ m_ a_ n, the fol- low┆
0x10c0…10e0 69 6e 67 20 69 73 20 76 61 6c 69 64 3a 0a 0a 09 20 20 67 65 74 64 61 74 65 28 22 66 72 65 69 74 ┆ing is valid: getdate("freit┆
0x10e0…1100 61 67 20 64 65 6e 20 31 30 2e 20 6f 6b 74 6f 62 65 72 20 31 39 38 36 09 31 30 2e 33 30 20 55 68 ┆ag den 10. oktober 1986 10.30 Uh┆
0x1100…1120 72 22 29 0a 0a 20 20 20 20 20 4c 6f 63 61 6c 20 74 69 6d 65 09 61 6e 64 20 64 61 74 65 20 73 70 ┆r") Local time and date sp┆
0x1120…1140 65 63 69 66 69 63 61 74 69 6f 6e 20 61 72 65 20 61 6c 73 6f 09 73 75 70 70 6f 72 74 65 64 2e 20 ┆ecification are also supported. ┆
0x1140…1160 20 54 68 65 0a 20 20 20 20 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 78 61 6d 70 6c 65 73 09 73 68 6f ┆ The following examples sho┆
0x1160…1180 77 20 68 6f 77 20 6c 6f 63 61 6c 20 64 61 74 65 20 61 6e 64 09 74 69 6d 65 20 73 70 65 63 69 66 ┆w how local date and time specif┆
0x1180…11a0 69 63 61 2d 0a 20 20 20 20 20 74 69 6f 6e 20 63 61 6e 20 62 65 20 64 65 66 69 6e 65 64 20 69 6e ┆ica- tion can be defined in┆
0x11a0…11c0 20 74 68 65 09 74 65 6d 70 6c 61 74 65 2e 0a 0a 09 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆ the template. ____________┆
0x11c0…11e0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆________________________________┆
0x11e0…1200 5f 5f 5f 0a 09 09 20 20 20 20 49 6e 76 6f 63 61 74 69 6f 6e 09 09 20 4c 69 6e 65 20 69 6e 20 54 ┆___ Invocation Line in T┆
0x1200…1220 65 6d 70 6c 61 74 65 0a 09 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆emplate ____________________┆
0x1220…1240 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 09 20 20 20 ┆___________________________ ┆
0x1240…1260 20 5f 08 67 5f 08 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 28 22 5f 08 31 5f 08 31 2f 5f ┆ _ g_ e_ t_ d_ a_ t_ e("_ 1_ 1/_┆
0x1260…1280 08 32 5f 08 37 2f 5f 08 38 5f 08 36 22 29 09 09 20 25 6d 2f 25 64 2f 25 79 0a 09 20 20 20 20 5f ┆ 2_ 7/_ 8_ 6") %m/%d/%y _┆
0x1280…12a0 08 67 5f 08 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 28 22 5f 08 32 5f 08 37 2e 5f 08 31 ┆ g_ e_ t_ d_ a_ t_ e("_ 2_ 7._ 1┆
0x12a0…12c0 5f 08 31 2e 5f 08 38 5f 08 36 22 29 09 09 20 25 64 2e 25 6d 2e 25 79 0a 09 20 20 20 20 5f 08 67 ┆_ 1._ 8_ 6") %d.%m.%y _ g┆
0x12c0…12e0 5f 08 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 28 22 5f 08 38 5f 08 36 2d 5f 08 31 5f 08 ┆_ e_ t_ d_ a_ t_ e("_ 8_ 6-_ 1_ ┆
0x12e0…1300 31 2d 5f 08 32 5f 08 37 22 29 09 09 20 25 79 2d 25 6d 2d 25 64 0a 09 20 20 20 20 5f 08 67 5f 08 ┆1-_ 2_ 7") %y-%m-%d _ g_ ┆
0x1300…1320 65 5f 08 74 5f 08 64 5f 08 61 5f 08 74 5f 08 65 28 22 5f 08 46 5f 08 72 5f 08 69 5f 08 64 5f 08 ┆e_ t_ d_ a_ t_ e("_ F_ r_ i_ d_ ┆
0x1320…1340 61 5f 08 79 20 5f 08 31 5f 08 32 3a 5f 08 30 5f 08 30 3a 5f 08 30 5f 08 30 22 29 09 20 25 41 20 ┆a_ y _ 1_ 2:_ 0_ 0:_ 0_ 0") %A ┆
0x1340…1360 25 48 3a 25 4d 3a 25 53 0a 09 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆%H:%M:%S ___________________┆
0x1360…1380 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 0a 09 20 ┆____________________________ ┆
0x1380…13a0 20 7c 0a 09 20 20 7c 0a 09 20 20 7c 0a 09 20 20 7c 0a 09 20 20 7c 0a 09 20 20 7c 0a 09 20 20 7c ┆ | | | | | | |┆
0x13a0…13c0 0a 0a 0a 0a 0a 0a 09 09 09 09 20 20 20 20 20 20 7c 0a 09 09 09 09 20 20 20 20 20 20 7c 0a 09 09 ┆ | | ┆
0x13c0…13e0 09 09 20 20 20 20 20 20 7c 0a 09 09 09 09 20 20 20 20 20 20 7c 0a 09 09 09 09 20 20 20 20 20 20 ┆ | | ┆
0x13e0…1400 7c 0a 09 09 09 09 20 20 20 20 20 20 7c 0a 09 09 09 09 20 20 20 20 20 20 7c 0a 0a 0a 0a 0a 0a 09 ┆| | | ┆
0x1400…1420 09 09 09 09 09 09 20 7c 0a 09 09 09 09 09 09 09 20 7c 0a 09 09 09 09 09 09 09 20 7c 0a 09 09 09 ┆ | | | ┆
0x1420…1440 09 09 09 09 20 7c 0a 09 09 09 09 09 09 09 20 7c 0a 09 09 09 09 09 09 09 20 7c 0a 09 09 09 09 09 ┆ | | | ┆
0x1440…1460 09 09 20 7c 0a 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 72 ┆ | The following r┆
0x1460…1480 75 6c 65 73 20 61 72 65 20 61 70 70 6c 69 65 64 20 66 6f 72 20 63 6f 6e 76 65 72 74 69 6e 67 20 ┆ules are applied for converting ┆
0x1480…14a0 74 68 65 09 69 6e 70 75 74 0a 20 20 20 20 20 73 70 65 63 69 66 69 63 61 74 69 6f 6e 20 69 6e 74 ┆the input specification int┆
0x14a0…14c0 6f 09 74 68 65 20 69 6e 74 65 72 6e 61 6c 20 66 6f 72 6d 61 74 3a 0a 0a 09 20 20 49 66 20 6f 6e ┆o the internal format: If on┆
0x14c0…14e0 6c 79 20 74 68 65 20 77 65 65 6b 64 61 79 20 69 73 20 67 69 76 65 6e 2c 09 74 6f 64 61 79 20 69 ┆ly the weekday is given, today i┆
0x14e0…1500 73 20 61 73 73 75 6d 65 64 20 69 66 20 74 68 65 0a 09 20 20 67 69 76 65 6e 09 64 61 79 20 69 73 ┆s assumed if the given day is┆
0x1500…1520 20 65 71 75 61 6c 20 74 6f 09 74 68 65 20 63 75 72 72 65 6e 74 20 64 61 79 09 61 6e 64 20 6e 65 ┆ equal to the current day and ne┆
0x1520…1540 78 74 20 77 65 65 6b 20 69 66 0a 09 20 20 69 74 20 69 73 09 6c 65 73 73 2e 0a 0a 09 20 20 49 66 ┆xt week if it is less. If┆
0x1540…1560 20 6f 6e 6c 79 20 74 68 65 20 6d 6f 6e 74 68 20 69 73 20 67 69 76 65 6e 2c 20 74 68 65 20 63 75 ┆ only the month is given, the cu┆
0x1560…1580 72 72 65 6e 74 20 6d 6f 6e 74 68 09 69 73 0a 09 20 20 61 73 73 75 6d 65 64 20 69 66 20 74 68 65 ┆rrent month is assumed if the┆
0x1580…15a0 20 67 69 76 65 6e 20 6d 6f 6e 74 68 20 69 73 09 65 71 75 61 6c 20 74 6f 20 74 68 65 20 63 75 72 ┆ given month is equal to the cur┆
0x15a0…15c0 72 65 6e 74 0a 09 20 20 6d 6f 6e 74 68 09 61 6e 64 20 6e 65 78 74 20 79 65 61 72 20 69 66 20 69 ┆rent month and next year if i┆
0x15c0…15e0 74 20 69 73 20 6c 65 73 73 20 61 6e 64 09 6e 6f 20 79 65 61 72 09 69 73 20 67 69 76 65 6e 2e 0a ┆t is less and no year is given. ┆
0x15e0…1600 09 20 20 28 54 68 65 20 66 69 72 73 74 20 64 61 79 20 6f 66 20 6d 6f 6e 74 68 20 69 73 20 61 73 ┆ (The first day of month is as┆
0x1600…1620 73 75 6d 65 64 20 69 66 09 6e 6f 20 64 61 79 20 69 73 20 67 69 76 65 6e 2e 29 0a 0a 09 20 20 49 ┆sumed if no day is given.) I┆
0x1620…1640 66 20 6e 6f 09 68 6f 75 72 2c 20 6d 69 6e 75 74 65 2c 20 61 6e 64 20 73 65 63 6f 6e 64 20 61 72 ┆f no hour, minute, and second ar┆
0x1640…1660 65 20 67 69 76 65 6e 2c 20 74 68 65 09 63 75 72 72 65 6e 74 0a 0a 0a 0a 0a 0a 0a 09 20 20 68 6f ┆e given, the current ho┆
0x1660…1680 75 72 2c 09 6d 69 6e 75 74 65 2c 09 61 6e 64 20 73 65 63 6f 6e 64 20 61 72 65 20 61 73 73 75 6d ┆ur, minute, and second are assum┆
0x1680…16a0 65 64 2e 0a 0a 09 20 20 49 66 20 6e 6f 09 64 61 74 65 20 69 73 09 67 69 76 65 6e 2c 20 74 6f 64 ┆ed. If no date is given, tod┆
0x16a0…16c0 61 79 20 69 73 09 61 73 73 75 6d 65 64 09 69 66 20 74 68 65 20 67 69 76 65 6e 20 68 6f 75 72 0a ┆ay is assumed if the given hour ┆
0x16c0…16e0 09 20 20 69 73 20 67 72 65 61 74 65 72 20 74 68 61 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 68 ┆ is greater than the current h┆
0x16e0…1700 6f 75 72 20 61 6e 64 20 74 6f 6d 6f 72 72 6f 77 09 69 73 0a 09 20 20 61 73 73 75 6d 65 64 20 69 ┆our and tomorrow is assumed i┆
0x1700…1720 66 20 69 74 09 69 73 20 6c 65 73 73 2e 0a 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e ┆f it is less. The followin┆
0x1720…1740 67 20 65 78 61 6d 70 6c 65 73 20 69 6c 6c 75 73 74 72 61 74 65 20 74 68 65 20 61 62 6f 76 65 20 ┆g examples illustrate the above ┆
0x1740…1760 72 75 6c 65 73 2e 09 20 41 73 73 75 6d 65 0a 20 20 20 20 20 74 68 61 74 20 74 68 65 20 63 75 72 ┆rules. Assume that the cur┆
0x1760…1780 72 65 6e 74 20 64 61 74 65 20 69 73 20 4d 08 4d 08 4d 08 4d 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e ┆rent date is M M M Mo o o on n n┆
0x1780…17a0 08 6e 20 53 08 53 08 53 08 53 65 08 65 08 65 08 65 70 08 70 08 70 08 70 20 32 08 32 08 32 08 32 ┆ n S S S Se e e ep p p p 2 2 2 2┆
0x17a0…17c0 32 08 32 08 32 08 32 20 31 08 31 08 31 08 31 32 08 32 08 32 08 32 3a 08 3a 08 3a 08 3a 31 08 31 ┆2 2 2 2 1 1 1 12 2 2 2: : : :1 1┆
0x17c0…17e0 08 31 08 31 39 08 39 08 39 08 39 3a 08 3a 08 3a 08 3a 34 08 34 08 34 08 34 37 08 37 08 37 08 37 ┆ 1 19 9 9 9: : : :4 4 4 47 7 7 7┆
0x17e0…1800 20 45 08 45 08 45 08 45 44 08 44 08 44 08 44 54 08 54 08 54 08 54 20 31 08 31 08 31 08 31 39 08 ┆ E E E ED D D DT T T T 1 1 1 19 ┆
0x1800…1820 39 08 39 08 39 38 08 38 08 38 08 38 36 08 36 08 36 08 36 20 61 6e 64 0a 20 20 20 20 20 74 68 65 ┆9 9 98 8 8 86 6 6 6 and the┆
0x1820…1840 20 4c 41 4e 47 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 20 69 73 20 6e 6f ┆ LANG environment variable is no┆
0x1840…1860 74 20 73 65 74 2e 0a 0a 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆t set. _____________________┆
0x1860…1880 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆________________________________┆
0x1880…18a0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 20 20 20 20 20 20 20 49 6e 70 75 74 09 20 20 20 4c 69 6e 65 ┆___________ Input Line┆
0x18a0…18c0 09 69 6e 20 54 65 6d 70 6c 61 74 65 09 09 20 20 44 61 74 65 0a 20 20 20 5f 5f 5f 5f 5f 5f 5f 5f ┆ in Template Date ________┆
0x18c0…18e0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f ┆________________________________┆
0x18e0…1900 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 20 20 20 20 4d 6f 6e ┆________________________ Mon┆
0x1900…1920 09 09 20 20 20 25 08 25 08 25 08 25 61 08 61 08 61 08 61 09 09 20 20 20 20 20 20 4d 6f 6e 20 53 ┆ % % % %a a a a Mon S┆
[…truncated at 200 lines…]