diff options
author | millert <> | 2004-01-20 16:47:56 +0000 |
---|---|---|
committer | millert <> | 2004-01-20 16:47:56 +0000 |
commit | e794a18f3a5f5701d8afd76570112e83b4f8a336 (patch) | |
tree | 2480b83a995989d7c0651275130a0fa6c3bfae2c /src/regress/lib | |
parent | 3a9bdfad7b4583f085b2e8157df7796839aa8ae2 (diff) | |
download | openbsd-e794a18f3a5f5701d8afd76570112e83b4f8a336.tar.gz openbsd-e794a18f3a5f5701d8afd76570112e83b4f8a336.tar.bz2 openbsd-e794a18f3a5f5701d8afd76570112e83b4f8a336.zip |
Add strptime regress from NetBSD; OK miod@ after un-peeing.
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libc/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libc/time/Makefile | 5 | ||||
-rw-r--r-- | src/regress/lib/libc/time/strptime/Makefile | 12 | ||||
-rw-r--r-- | src/regress/lib/libc/time/strptime/expected | 346 | ||||
-rw-r--r-- | src/regress/lib/libc/time/strptime/main.c | 117 | ||||
-rw-r--r-- | src/regress/lib/libc/time/strptime/tests | 267 |
6 files changed, 749 insertions, 2 deletions
diff --git a/src/regress/lib/libc/Makefile b/src/regress/lib/libc/Makefile index 1861062bbe..1b655bcbed 100644 --- a/src/regress/lib/libc/Makefile +++ b/src/regress/lib/libc/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | # $OpenBSD: Makefile,v 1.11 2003/05/15 04:23:49 deraadt Exp $ | 1 | # $OpenBSD: Makefile,v 1.12 2004/01/20 16:47:55 millert Exp $ |
2 | 2 | ||
3 | SUBDIR+= alloca | 3 | SUBDIR+= alloca |
4 | SUBDIR+= _setjmp db getaddrinfo regex setjmp sigsetjmp malloc sigreturn popen | 4 | SUBDIR+= _setjmp db getaddrinfo regex setjmp sigsetjmp malloc sigreturn popen |
5 | SUBDIR+= longjmp atexit sprintf | 5 | SUBDIR+= longjmp atexit sprintf time |
6 | .if (${MACHINE_ARCH} != "vax") | 6 | .if (${MACHINE_ARCH} != "vax") |
7 | SUBDIR+= ieeefp | 7 | SUBDIR+= ieeefp |
8 | .endif | 8 | .endif |
diff --git a/src/regress/lib/libc/time/Makefile b/src/regress/lib/libc/time/Makefile new file mode 100644 index 0000000000..28b5556027 --- /dev/null +++ b/src/regress/lib/libc/time/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2004/01/20 16:47:55 millert Exp $ | ||
2 | |||
3 | SUBDIR+=strptime | ||
4 | |||
5 | .include <bsd.subdir.mk> | ||
diff --git a/src/regress/lib/libc/time/strptime/Makefile b/src/regress/lib/libc/time/strptime/Makefile new file mode 100644 index 0000000000..9a288e3c0e --- /dev/null +++ b/src/regress/lib/libc/time/strptime/Makefile | |||
@@ -0,0 +1,12 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2004/01/20 16:47:55 millert Exp $ | ||
2 | |||
3 | PROG= strptime_test | ||
4 | SRCS= main.c | ||
5 | CLEANFILES+= got | ||
6 | |||
7 | REGRESS_TARGETS=do-reg | ||
8 | do-reg: | ||
9 | ./${PROG} < ${.CURDIR}/tests > got | ||
10 | diff ${.CURDIR}/expected got | ||
11 | |||
12 | .include <bsd.regress.mk> | ||
diff --git a/src/regress/lib/libc/time/strptime/expected b/src/regress/lib/libc/time/strptime/expected new file mode 100644 index 0000000000..d038d319af --- /dev/null +++ b/src/regress/lib/libc/time/strptime/expected | |||
@@ -0,0 +1,346 @@ | |||
1 | --- ctime --- 1 | ||
2 | succeeded | ||
3 | 46 27 23 20 0 98 2 -1 | ||
4 | |||
5 | --- ctime --- 2 | ||
6 | succeeded | ||
7 | 46 27 23 20 0 98 2 -1 | ||
8 | |||
9 | --- ctime --- 3 | ||
10 | succeeded | ||
11 | 46 27 23 20 0 98 2 -1 | ||
12 | |||
13 | --- %a --- 1 | ||
14 | succeeded | ||
15 | -1 -1 -1 -1 -1 -1 0 -1 | ||
16 | |||
17 | --- %a --- 2 | ||
18 | succeeded | ||
19 | -1 -1 -1 -1 -1 -1 0 -1 | ||
20 | |||
21 | --- %a --- 3 | ||
22 | succeeded | ||
23 | -1 -1 -1 -1 -1 -1 1 -1 | ||
24 | |||
25 | --- %a --- 4 | ||
26 | succeeded | ||
27 | -1 -1 -1 -1 -1 -1 1 -1 | ||
28 | |||
29 | --- %a --- 5 | ||
30 | succeeded | ||
31 | -1 -1 -1 -1 -1 -1 2 -1 | ||
32 | |||
33 | --- %a --- 6 | ||
34 | succeeded | ||
35 | -1 -1 -1 -1 -1 -1 2 -1 | ||
36 | |||
37 | --- %a --- 7 | ||
38 | succeeded | ||
39 | -1 -1 -1 -1 -1 -1 3 -1 | ||
40 | |||
41 | --- %a --- 8 | ||
42 | succeeded | ||
43 | -1 -1 -1 -1 -1 -1 3 -1 | ||
44 | |||
45 | --- %a --- 9 | ||
46 | succeeded | ||
47 | -1 -1 -1 -1 -1 -1 4 -1 | ||
48 | |||
49 | --- %a --- 10 | ||
50 | succeeded | ||
51 | -1 -1 -1 -1 -1 -1 4 -1 | ||
52 | |||
53 | --- %a --- 11 | ||
54 | succeeded | ||
55 | -1 -1 -1 -1 -1 -1 5 -1 | ||
56 | |||
57 | --- %a --- 12 | ||
58 | succeeded | ||
59 | -1 -1 -1 -1 -1 -1 5 -1 | ||
60 | |||
61 | --- %a --- 13 | ||
62 | succeeded | ||
63 | -1 -1 -1 -1 -1 -1 6 -1 | ||
64 | |||
65 | --- %a --- 14 | ||
66 | succeeded | ||
67 | -1 -1 -1 -1 -1 -1 6 -1 | ||
68 | |||
69 | --- %a --- 15 | ||
70 | succeeded | ||
71 | -1 -1 -1 -1 -1 -1 6 -1 | ||
72 | urn | ||
73 | |||
74 | --- %a --- 16 | ||
75 | failed | ||
76 | --- %A --- 1 | ||
77 | succeeded | ||
78 | -1 -1 -1 -1 -1 -1 0 -1 | ||
79 | |||
80 | --- %A --- 2 | ||
81 | succeeded | ||
82 | -1 -1 -1 -1 -1 -1 0 -1 | ||
83 | |||
84 | --- %A --- 3 | ||
85 | succeeded | ||
86 | -1 -1 -1 -1 -1 -1 1 -1 | ||
87 | |||
88 | --- %A --- 4 | ||
89 | succeeded | ||
90 | -1 -1 -1 -1 -1 -1 1 -1 | ||
91 | |||
92 | --- %A --- 5 | ||
93 | succeeded | ||
94 | -1 -1 -1 -1 -1 -1 2 -1 | ||
95 | |||
96 | --- %A --- 6 | ||
97 | succeeded | ||
98 | -1 -1 -1 -1 -1 -1 2 -1 | ||
99 | |||
100 | --- %A --- 7 | ||
101 | succeeded | ||
102 | -1 -1 -1 -1 -1 -1 3 -1 | ||
103 | |||
104 | --- %A --- 8 | ||
105 | succeeded | ||
106 | -1 -1 -1 -1 -1 -1 3 -1 | ||
107 | |||
108 | --- %A --- 9 | ||
109 | succeeded | ||
110 | -1 -1 -1 -1 -1 -1 4 -1 | ||
111 | |||
112 | --- %A --- 10 | ||
113 | succeeded | ||
114 | -1 -1 -1 -1 -1 -1 4 -1 | ||
115 | |||
116 | --- %A --- 11 | ||
117 | succeeded | ||
118 | -1 -1 -1 -1 -1 -1 5 -1 | ||
119 | |||
120 | --- %A --- 12 | ||
121 | succeeded | ||
122 | -1 -1 -1 -1 -1 -1 5 -1 | ||
123 | |||
124 | --- %A --- 13 | ||
125 | succeeded | ||
126 | -1 -1 -1 -1 -1 -1 6 -1 | ||
127 | |||
128 | --- %A --- 14 | ||
129 | succeeded | ||
130 | -1 -1 -1 -1 -1 -1 6 -1 | ||
131 | |||
132 | --- %A --- 15 | ||
133 | succeeded | ||
134 | -1 -1 -1 -1 -1 -1 6 -1 | ||
135 | urn | ||
136 | |||
137 | --- %A --- 16 | ||
138 | failed | ||
139 | --- %b --- 1 | ||
140 | succeeded | ||
141 | -1 -1 -1 -1 0 -1 -1 -1 | ||
142 | |||
143 | --- %b --- 2 | ||
144 | succeeded | ||
145 | -1 -1 -1 -1 0 -1 -1 -1 | ||
146 | |||
147 | --- %b --- 3 | ||
148 | succeeded | ||
149 | -1 -1 -1 -1 1 -1 -1 -1 | ||
150 | |||
151 | --- %b --- 4 | ||
152 | succeeded | ||
153 | -1 -1 -1 -1 1 -1 -1 -1 | ||
154 | |||
155 | --- %b --- 5 | ||
156 | succeeded | ||
157 | -1 -1 -1 -1 2 -1 -1 -1 | ||
158 | |||
159 | --- %b --- 6 | ||
160 | succeeded | ||
161 | -1 -1 -1 -1 2 -1 -1 -1 | ||
162 | |||
163 | --- %b --- 7 | ||
164 | succeeded | ||
165 | -1 -1 -1 -1 3 -1 -1 -1 | ||
166 | |||
167 | --- %b --- 8 | ||
168 | succeeded | ||
169 | -1 -1 -1 -1 3 -1 -1 -1 | ||
170 | |||
171 | --- %b --- 9 | ||
172 | succeeded | ||
173 | -1 -1 -1 -1 4 -1 -1 -1 | ||
174 | |||
175 | --- %b --- 10 | ||
176 | succeeded | ||
177 | -1 -1 -1 -1 5 -1 -1 -1 | ||
178 | |||
179 | --- %b --- 11 | ||
180 | succeeded | ||
181 | -1 -1 -1 -1 5 -1 -1 -1 | ||
182 | |||
183 | --- %b --- 12 | ||
184 | succeeded | ||
185 | -1 -1 -1 -1 6 -1 -1 -1 | ||
186 | |||
187 | --- %b --- 13 | ||
188 | succeeded | ||
189 | -1 -1 -1 -1 6 -1 -1 -1 | ||
190 | |||
191 | --- %b --- 14 | ||
192 | succeeded | ||
193 | -1 -1 -1 -1 7 -1 -1 -1 | ||
194 | |||
195 | --- %b --- 15 | ||
196 | succeeded | ||
197 | -1 -1 -1 -1 7 -1 -1 -1 | ||
198 | |||
199 | --- %b --- 16 | ||
200 | succeeded | ||
201 | -1 -1 -1 -1 8 -1 -1 -1 | ||
202 | |||
203 | --- %b --- 17 | ||
204 | succeeded | ||
205 | -1 -1 -1 -1 8 -1 -1 -1 | ||
206 | |||
207 | --- %b --- 18 | ||
208 | succeeded | ||
209 | -1 -1 -1 -1 9 -1 -1 -1 | ||
210 | |||
211 | --- %b --- 19 | ||
212 | succeeded | ||
213 | -1 -1 -1 -1 9 -1 -1 -1 | ||
214 | |||
215 | --- %b --- 20 | ||
216 | succeeded | ||
217 | -1 -1 -1 -1 10 -1 -1 -1 | ||
218 | |||
219 | --- %b --- 21 | ||
220 | succeeded | ||
221 | -1 -1 -1 -1 10 -1 -1 -1 | ||
222 | |||
223 | --- %b --- 22 | ||
224 | succeeded | ||
225 | -1 -1 -1 -1 11 -1 -1 -1 | ||
226 | |||
227 | --- %b --- 23 | ||
228 | succeeded | ||
229 | -1 -1 -1 -1 11 -1 -1 -1 | ||
230 | |||
231 | --- %b --- 25 | ||
232 | succeeded | ||
233 | -1 -1 -1 -1 4 -1 -1 -1 | ||
234 | or | ||
235 | |||
236 | --- %b --- 24 | ||
237 | succeeded | ||
238 | -1 -1 -1 -1 2 -1 -1 -1 | ||
239 | s | ||
240 | |||
241 | --- %b --- 26 | ||
242 | failed | ||
243 | --- %B --- 1 | ||
244 | succeeded | ||
245 | -1 -1 -1 -1 0 -1 -1 -1 | ||
246 | |||
247 | --- %B --- 2 | ||
248 | succeeded | ||
249 | -1 -1 -1 -1 0 -1 -1 -1 | ||
250 | |||
251 | --- %B --- 3 | ||
252 | succeeded | ||
253 | -1 -1 -1 -1 1 -1 -1 -1 | ||
254 | |||
255 | --- %B --- 4 | ||
256 | succeeded | ||
257 | -1 -1 -1 -1 1 -1 -1 -1 | ||
258 | |||
259 | --- %B --- 5 | ||
260 | succeeded | ||
261 | -1 -1 -1 -1 2 -1 -1 -1 | ||
262 | |||
263 | --- %B --- 6 | ||
264 | succeeded | ||
265 | -1 -1 -1 -1 2 -1 -1 -1 | ||
266 | |||
267 | --- %B --- 7 | ||
268 | succeeded | ||
269 | -1 -1 -1 -1 3 -1 -1 -1 | ||
270 | |||
271 | --- %B --- 8 | ||
272 | succeeded | ||
273 | -1 -1 -1 -1 3 -1 -1 -1 | ||
274 | |||
275 | --- %B --- 9 | ||
276 | succeeded | ||
277 | -1 -1 -1 -1 4 -1 -1 -1 | ||
278 | |||
279 | --- %B --- 10 | ||
280 | succeeded | ||
281 | -1 -1 -1 -1 5 -1 -1 -1 | ||
282 | |||
283 | --- %B --- 11 | ||
284 | succeeded | ||
285 | -1 -1 -1 -1 5 -1 -1 -1 | ||
286 | |||
287 | --- %B --- 12 | ||
288 | succeeded | ||
289 | -1 -1 -1 -1 6 -1 -1 -1 | ||
290 | |||
291 | --- %B --- 13 | ||
292 | succeeded | ||
293 | -1 -1 -1 -1 6 -1 -1 -1 | ||
294 | |||
295 | --- %B --- 14 | ||
296 | succeeded | ||
297 | -1 -1 -1 -1 7 -1 -1 -1 | ||
298 | |||
299 | --- %B --- 15 | ||
300 | succeeded | ||
301 | -1 -1 -1 -1 7 -1 -1 -1 | ||
302 | |||
303 | --- %B --- 16 | ||
304 | succeeded | ||
305 | -1 -1 -1 -1 8 -1 -1 -1 | ||
306 | |||
307 | --- %B --- 17 | ||
308 | succeeded | ||
309 | -1 -1 -1 -1 8 -1 -1 -1 | ||
310 | |||
311 | --- %B --- 18 | ||
312 | succeeded | ||
313 | -1 -1 -1 -1 9 -1 -1 -1 | ||
314 | |||
315 | --- %B --- 19 | ||
316 | succeeded | ||
317 | -1 -1 -1 -1 9 -1 -1 -1 | ||
318 | |||
319 | --- %B --- 20 | ||
320 | succeeded | ||
321 | -1 -1 -1 -1 10 -1 -1 -1 | ||
322 | |||
323 | --- %B --- 21 | ||
324 | succeeded | ||
325 | -1 -1 -1 -1 10 -1 -1 -1 | ||
326 | |||
327 | --- %B --- 22 | ||
328 | succeeded | ||
329 | -1 -1 -1 -1 11 -1 -1 -1 | ||
330 | |||
331 | --- %B --- 23 | ||
332 | succeeded | ||
333 | -1 -1 -1 -1 11 -1 -1 -1 | ||
334 | |||
335 | --- %B --- 25 | ||
336 | succeeded | ||
337 | -1 -1 -1 -1 4 -1 -1 -1 | ||
338 | or | ||
339 | |||
340 | --- %B --- 24 | ||
341 | succeeded | ||
342 | -1 -1 -1 -1 2 -1 -1 -1 | ||
343 | s | ||
344 | |||
345 | --- %B --- 26 | ||
346 | failed | ||
diff --git a/src/regress/lib/libc/time/strptime/main.c b/src/regress/lib/libc/time/strptime/main.c new file mode 100644 index 0000000000..d1d9c394a5 --- /dev/null +++ b/src/regress/lib/libc/time/strptime/main.c | |||
@@ -0,0 +1,117 @@ | |||
1 | /* $OpenBSD: main.c,v 1.1 2004/01/20 16:47:56 millert Exp $ */ | ||
2 | /* $NetBSD: main.c,v 1.4 2002/02/21 07:38:18 itojun Exp $ */ | ||
3 | |||
4 | /*- | ||
5 | * Copyright (c) 1998 The NetBSD Foundation, Inc. | ||
6 | * All rights reserved. | ||
7 | * | ||
8 | * Redistribution and use in source and binary forms, with or without | ||
9 | * modification, are permitted provided that the following conditions | ||
10 | * are met: | ||
11 | * 1. Redistributions of source code must retain the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer. | ||
13 | * 2. Redistributions in binary form must reproduce the above copyright | ||
14 | * notice, this list of conditions and the following disclaimer in the | ||
15 | * documentation and/or other materials provided with the distribution. | ||
16 | * 3. All advertising materials mentioning features or use of this software | ||
17 | * must display the following acknowledgement: | ||
18 | * This product includes software developed by the NetBSD | ||
19 | * Foundation, Inc. and its contributors. | ||
20 | * 4. Neither the name of The NetBSD Foundation nor the names of its | ||
21 | * contributors may be used to endorse or promote products derived | ||
22 | * from this software without specific prior written permission. | ||
23 | * | ||
24 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | ||
25 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | ||
26 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
27 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | ||
28 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
29 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
30 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
31 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
32 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
33 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
34 | * POSSIBILITY OF SUCH DAMAGE. | ||
35 | */ | ||
36 | #include <err.h> | ||
37 | #include <stdio.h> | ||
38 | #include <stdlib.h> | ||
39 | #include <string.h> | ||
40 | #include <time.h> | ||
41 | |||
42 | int main(int, char *[]); | ||
43 | void die(void); | ||
44 | |||
45 | void | ||
46 | die(void) | ||
47 | { | ||
48 | |||
49 | if (ferror(stdin)) | ||
50 | err(1, "fgetln"); | ||
51 | else | ||
52 | errx(1, "input is truncated"); | ||
53 | } | ||
54 | |||
55 | int | ||
56 | main(int argc, char *argv[]) | ||
57 | { | ||
58 | char *p, *title, *buf, *format; | ||
59 | size_t len; | ||
60 | struct tm tm; | ||
61 | |||
62 | for (;;) { | ||
63 | p = fgetln(stdin, &len); | ||
64 | if (p == 0) | ||
65 | die(); | ||
66 | title = malloc(len + 1); | ||
67 | memcpy(title, p, len); | ||
68 | title[len] = '\0'; | ||
69 | |||
70 | if (!strcmp(title, "EOF\n")) | ||
71 | return(0); | ||
72 | if (title[0] == '#' || title[0] == '\n') { | ||
73 | free(title); | ||
74 | continue; | ||
75 | } | ||
76 | |||
77 | p = fgetln(stdin, &len); | ||
78 | if (p == 0) | ||
79 | die(); | ||
80 | buf = malloc(len + 1); | ||
81 | memcpy(buf, p, len); | ||
82 | buf[len] = '\0'; | ||
83 | |||
84 | p = fgetln(stdin, &len); | ||
85 | if (p == 0) | ||
86 | die(); | ||
87 | format = malloc(len + 1); | ||
88 | memcpy(format, p, len); | ||
89 | format[len] = '\0'; | ||
90 | |||
91 | tm.tm_sec = -1; | ||
92 | tm.tm_min = -1; | ||
93 | tm.tm_hour = -1; | ||
94 | tm.tm_mday = -1; | ||
95 | tm.tm_mon = -1; | ||
96 | tm.tm_year = -1; | ||
97 | tm.tm_wday = -1; | ||
98 | tm.tm_yday = -1; | ||
99 | |||
100 | p = strptime(buf, format, &tm); | ||
101 | |||
102 | printf("%s", title); | ||
103 | if (p) { | ||
104 | printf("succeeded\n"); | ||
105 | printf("%d %d %d %d %d %d %d %d\n", | ||
106 | tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mday, | ||
107 | tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday); | ||
108 | printf("%s\n", p); | ||
109 | } else { | ||
110 | printf("failed\n"); | ||
111 | } | ||
112 | |||
113 | free(title); | ||
114 | free(buf); | ||
115 | free(format); | ||
116 | } | ||
117 | } | ||
diff --git a/src/regress/lib/libc/time/strptime/tests b/src/regress/lib/libc/time/strptime/tests new file mode 100644 index 0000000000..d96393b2b7 --- /dev/null +++ b/src/regress/lib/libc/time/strptime/tests | |||
@@ -0,0 +1,267 @@ | |||
1 | # some intial checks to make sure common things work | ||
2 | --- ctime --- 1 | ||
3 | Tue Jan 20 23:27:46 1998 | ||
4 | %a %b %d %T %Y | ||
5 | --- ctime --- 2 | ||
6 | Tue Jan 20 23:27:46 1998 | ||
7 | %a %b %d %H:%M:%S %Y | ||
8 | --- ctime --- 3 | ||
9 | Tue Jan 20 23:27:46 1998 | ||
10 | %c | ||
11 | |||
12 | # test some valid and invalid day names | ||
13 | --- %a --- 1 | ||
14 | Sun | ||
15 | %a | ||
16 | --- %a --- 2 | ||
17 | Sunday | ||
18 | %a | ||
19 | --- %a --- 3 | ||
20 | Mon | ||
21 | %a | ||
22 | --- %a --- 4 | ||
23 | Monday | ||
24 | %a | ||
25 | --- %a --- 5 | ||
26 | Tue | ||
27 | %a | ||
28 | --- %a --- 6 | ||
29 | Tuesday | ||
30 | %a | ||
31 | --- %a --- 7 | ||
32 | Wed | ||
33 | %a | ||
34 | --- %a --- 8 | ||
35 | Wednesday | ||
36 | %a | ||
37 | --- %a --- 9 | ||
38 | Thu | ||
39 | %a | ||
40 | --- %a --- 10 | ||
41 | Thursday | ||
42 | %a | ||
43 | --- %a --- 11 | ||
44 | Fri | ||
45 | %a | ||
46 | --- %a --- 12 | ||
47 | Friday | ||
48 | %a | ||
49 | --- %a --- 13 | ||
50 | Sat | ||
51 | %a | ||
52 | --- %a --- 14 | ||
53 | Saturday | ||
54 | %a | ||
55 | --- %a --- 15 | ||
56 | Saturn | ||
57 | %a | ||
58 | --- %a --- 16 | ||
59 | Moon | ||
60 | %a | ||
61 | --- %A --- 1 | ||
62 | Sun | ||
63 | %A | ||
64 | --- %A --- 2 | ||
65 | Sunday | ||
66 | %A | ||
67 | --- %A --- 3 | ||
68 | Mon | ||
69 | %A | ||
70 | --- %A --- 4 | ||
71 | Monday | ||
72 | %A | ||
73 | --- %A --- 5 | ||
74 | Tue | ||
75 | %A | ||
76 | --- %A --- 6 | ||
77 | Tuesday | ||
78 | %A | ||
79 | --- %A --- 7 | ||
80 | Wed | ||
81 | %A | ||
82 | --- %A --- 8 | ||
83 | Wednesday | ||
84 | %A | ||
85 | --- %A --- 9 | ||
86 | Thu | ||
87 | %A | ||
88 | --- %A --- 10 | ||
89 | Thursday | ||
90 | %A | ||
91 | --- %A --- 11 | ||
92 | Fri | ||
93 | %A | ||
94 | --- %A --- 12 | ||
95 | Friday | ||
96 | %A | ||
97 | --- %A --- 13 | ||
98 | Sat | ||
99 | %A | ||
100 | --- %A --- 14 | ||
101 | Saturday | ||
102 | %A | ||
103 | --- %A --- 15 | ||
104 | Saturn | ||
105 | %A | ||
106 | --- %A --- 16 | ||
107 | Moon | ||
108 | %A | ||
109 | |||
110 | # test some valid and invalid month names | ||
111 | --- %b --- 1 | ||
112 | Jan | ||
113 | %b | ||
114 | --- %b --- 2 | ||
115 | January | ||
116 | %b | ||
117 | --- %b --- 3 | ||
118 | Feb | ||
119 | %b | ||
120 | --- %b --- 4 | ||
121 | February | ||
122 | %b | ||
123 | --- %b --- 5 | ||
124 | Mar | ||
125 | %b | ||
126 | --- %b --- 6 | ||
127 | March | ||
128 | %b | ||
129 | --- %b --- 7 | ||
130 | Apr | ||
131 | %b | ||
132 | --- %b --- 8 | ||
133 | April | ||
134 | %b | ||
135 | --- %b --- 9 | ||
136 | May | ||
137 | %b | ||
138 | --- %b --- 10 | ||
139 | Jun | ||
140 | %b | ||
141 | --- %b --- 11 | ||
142 | June | ||
143 | %b | ||
144 | --- %b --- 12 | ||
145 | Jul | ||
146 | %b | ||
147 | --- %b --- 13 | ||
148 | July | ||
149 | %b | ||
150 | --- %b --- 14 | ||
151 | Aug | ||
152 | %b | ||
153 | --- %b --- 15 | ||
154 | August | ||
155 | %b | ||
156 | --- %b --- 16 | ||
157 | Sep | ||
158 | %b | ||
159 | --- %b --- 17 | ||
160 | September | ||
161 | %b | ||
162 | --- %b --- 18 | ||
163 | Oct | ||
164 | %b | ||
165 | --- %b --- 19 | ||
166 | October | ||
167 | %b | ||
168 | --- %b --- 20 | ||
169 | Nov | ||
170 | %b | ||
171 | --- %b --- 21 | ||
172 | November | ||
173 | %b | ||
174 | --- %b --- 22 | ||
175 | Dec | ||
176 | %b | ||
177 | --- %b --- 23 | ||
178 | December | ||
179 | %b | ||
180 | --- %b --- 25 | ||
181 | Mayor | ||
182 | %b | ||
183 | --- %b --- 24 | ||
184 | Mars | ||
185 | %b | ||
186 | --- %b --- 26 | ||
187 | Rover | ||
188 | %b | ||
189 | --- %B --- 1 | ||
190 | Jan | ||
191 | %B | ||
192 | --- %B --- 2 | ||
193 | January | ||
194 | %B | ||
195 | --- %B --- 3 | ||
196 | Feb | ||
197 | %B | ||
198 | --- %B --- 4 | ||
199 | February | ||
200 | %B | ||
201 | --- %B --- 5 | ||
202 | Mar | ||
203 | %B | ||
204 | --- %B --- 6 | ||
205 | March | ||
206 | %B | ||
207 | --- %B --- 7 | ||
208 | Apr | ||
209 | %B | ||
210 | --- %B --- 8 | ||
211 | April | ||
212 | %B | ||
213 | --- %B --- 9 | ||
214 | May | ||
215 | %B | ||
216 | --- %B --- 10 | ||
217 | Jun | ||
218 | %B | ||
219 | --- %B --- 11 | ||
220 | June | ||
221 | %B | ||
222 | --- %B --- 12 | ||
223 | Jul | ||
224 | %B | ||
225 | --- %B --- 13 | ||
226 | July | ||
227 | %B | ||
228 | --- %B --- 14 | ||
229 | Aug | ||
230 | %B | ||
231 | --- %B --- 15 | ||
232 | August | ||
233 | %B | ||
234 | --- %B --- 16 | ||
235 | Sep | ||
236 | %B | ||
237 | --- %B --- 17 | ||
238 | September | ||
239 | %B | ||
240 | --- %B --- 18 | ||
241 | Oct | ||
242 | %B | ||
243 | --- %B --- 19 | ||
244 | October | ||
245 | %B | ||
246 | --- %B --- 20 | ||
247 | Nov | ||
248 | %B | ||
249 | --- %B --- 21 | ||
250 | November | ||
251 | %B | ||
252 | --- %B --- 22 | ||
253 | Dec | ||
254 | %B | ||
255 | --- %B --- 23 | ||
256 | December | ||
257 | %B | ||
258 | --- %B --- 25 | ||
259 | Mayor | ||
260 | %B | ||
261 | --- %B --- 24 | ||
262 | Mars | ||
263 | %B | ||
264 | --- %B --- 26 | ||
265 | Rover | ||
266 | %B | ||
267 | EOF | ||