Debian Codegraph @

lib/Date/Manip/Lang/english.pod

raw
1 # Copyright (c) 1995-2026 Sullivan Beck. All rights reserved.
2 # This program is free software; you can redistribute it and/or modify it
3 # under the same terms as Perl itself.
4
5 ########################################################################
6 ########################################################################
7
8 =pod
9
10 =encoding utf-8
11
12 =head1 NAME
13
14 Date::Manip::Lang::english - English language support.
15
16 =head1 SYNOPSIS
17
18 This module contains a list of words and expressions supporting
19 the language. It is not intended to be used directly (other
20 Date::Manip modules will load it as needed).
21
22 =head1 LANGUAGE EXPRESSIONS
23
24 The following is a list of all language words and expressions used
25 to write times and/or dates.
26
27 All strings are case insensitive.
28
29 =over 4
30
31 =item B<Month names and abbreviations>
32
33 When writing out the name of the month, several different variations may
34 exist including full names and abbreviations.
35
36 The following month names may be used:
37
38 January
39
40 February
41
42 March
43
44 April
45
46 May
47
48 June
49
50 July
51
52 August
53
54 September
55
56 October
57
58 November
59
60 December
61
62
63 The following abbreviations may be used:
64
65 Jan
66 Jan.
67
68 Feb
69 Feb.
70
71 Mar
72 Mar.
73
74 Apr
75 Apr.
76
77 May
78 May.
79
80 Jun
81 Jun.
82
83 Jul
84 Jul.
85
86 Aug
87 Aug.
88
89 Sep
90 Sept
91 Sep.
92 Sept.
93
94 Oct
95 Oct.
96
97 Nov
98 Nov.
99
100 Dec
101 Dec.
102
103
104 =item B<Day names and abbreviations>
105
106 When writing out the name of the day, several different variations may
107 exist including full names and abbreviations.
108
109 The following day names may be used:
110
111 Monday
112
113 Tuesday
114
115 Wednesday
116
117 Thursday
118
119 Friday
120
121 Saturday
122
123 Sunday
124
125
126 The following abbreviations may be used:
127
128 Mon
129 Mon.
130
131 Tue
132 Tues
133 Tue.
134 Tues.
135
136 Wed
137 Wed.
138
139 Thu
140 Thur
141 Thu.
142 Thur.
143
144 Fri
145 Fri.
146
147 Sat
148 Sat.
149
150 Sun
151 Sun.
152
153
154 The following short (1-2 characters) abbreviations may be used:
155
156 M
157
158 T
159
160 W
161
162 Th
163
164 F
165
166 Sa
167
168 S
169
170
171 =item B<Delta field names>
172
173 These are the names (and abbreviations) for the fields in a delta. There are
174 7 fields: years, months, weeks, days, hours, minutes, seconds.
175
176 The names and abbreviations for these fields are:
177
178 years
179 y
180 yr
181 year
182 yrs
183
184 months
185 m
186 mon
187 month
188 mons
189
190 weeks
191 w
192 wk
193 wks
194 week
195
196 days
197 d
198 day
199
200 hours
201 h
202 hr
203 hrs
204 hour
205
206 minutes
207 mn
208 min
209 minute
210 mins
211
212 seconds
213 s
214 sec
215 second
216 secs
217
218
219 =item B<Morning/afternoon times>
220
221 This is a list of expressions use to designate morning or afternoon time
222 when a time is entered as a 12-hour time rather than a 24-hour time.
223 For example, in English, the time "17:00" could be specified as "5:00 PM".
224
225 Morning and afternoon time may be designated by the following sets of
226 words:
227
228 AM
229 A.M.
230
231 PM
232 P.M.
233
234
235 =item B<Each or every>
236
237 There are a list of words that specify every occurrence of something. These
238 are used in the following phrases:
239
240 EACH Monday
241 EVERY Monday
242 EVERY month
243
244 The following words may be used:
245
246 each
247 every
248
249
250 =item B<Next/Previous/Last occurrence>
251
252 There are a list of words that may be used to specify the next,
253 previous, or last occurrence of something. These words could be used
254 in the following phrases:
255
256 NEXT week
257
258 LAST Tuesday
259 PREVIOUS Tuesday
260
261 LAST day of the month
262
263 The following words may be used:
264
265 Next occurrence:
266
267 next
268 following
269
270
271 Previous occurrence:
272
273 previous
274 last
275
276
277 Last occurrence:
278
279 last
280 final
281
282
283 =item B<Delta words for going forward/backward in time>
284
285 When parsing deltas, there are words that may be used to specify
286 the the delta will refer to a time in the future or to a time in
287 the past (relative to some date). In English, for example, you
288 might say:
289
290 IN 5 days
291 5 days AGO
292
293 The following words may be used to specify deltas that refer to
294 dates in the past or future respectively:
295
296 ago
297 past
298 in the past
299 earlier
300 before now
301 hence
302
303 in
304 later
305 future
306 in the future
307 from now
308
309
310 =item B<Business mode>
311
312 This contains two lists of words which can be used to specify a standard
313 (i.e. non-business) delta or a business delta.
314
315 Previously, it was used to tell whether the delta was approximate or exact,
316 but now this list is not used except to force the delta to be standard.
317
318 The following words may be used:
319
320 exactly
321 approximately
322
323
324 The following words may be used to specify a business delta:
325
326 business
327
328
329 =item B<Numbers>
330
331 Numbers may be spelled out in a variety of ways. The following sets correspond
332 to the numbers from 1 to 53:
333
334 1st
335 first
336 one
337
338 2nd
339 second
340 two
341
342 3rd
343 third
344 three
345
346 4th
347 fourth
348 four
349
350 5th
351 fifth
352 five
353
354 6th
355 sixth
356 six
357
358 7th
359 seventh
360 seven
361
362 8th
363 eighth
364 eight
365
366 9th
367 ninth
368 nine
369
370 10th
371 tenth
372 ten
373
374
375 11th
376 eleventh
377 eleven
378
379 12th
380 twelfth
381 twelve
382
383 13th
384 thirteenth
385 thirteen
386
387 14th
388 fourteenth
389 fourteen
390
391 15th
392 fifteenth
393 fifteen
394
395 16th
396 sixteenth
397 sixteen
398
399 17th
400 seventeenth
401 seventeen
402
403 18th
404 eighteenth
405 eighteen
406
407 19th
408 nineteenth
409 nineteen
410
411 20th
412 twentieth
413 twenty
414
415
416 21st
417 twenty-first
418 twenty-one
419
420 22nd
421 twenty-second
422 twenty-two
423
424 23rd
425 twenty-third
426 twenty-three
427
428 24th
429 twenty-fourth
430 twenty-four
431
432 25th
433 twenty-fifth
434 twenty-five
435
436 26th
437 twenty-sixth
438 twenty-six
439
440 27th
441 twenty-seventh
442 twenty-seven
443
444 28th
445 twenty-eighth
446 twenty-eight
447
448 29th
449 twenty-ninth
450 twenty-nine
451
452 30th
453 thirtieth
454 thirty
455
456
457 31st
458 thirty-first
459 thirty-one
460
461 32nd
462 thirty-two
463 thirty-second
464
465 33rd
466 thirty-three
467 thirty-third
468
469 34th
470 thirty-four
471 thirty-fourth
472
473 35th
474 thirty-five
475 thirty-fifth
476
477 36th
478 thirty-six
479 thirty-sixth
480
481 37th
482 thirty-seven
483 thirty-seventh
484
485 38th
486 thirty-eight
487 thirty-eighth
488
489 39th
490 thirty-nine
491 thirty-ninth
492
493 40th
494 forty
495 fortieth
496
497
498 41st
499 forty-one
500 forty-first
501
502 42nd
503 forty-two
504 forty-second
505
506 43rd
507 forty-three
508 forty-third
509
510 44th
511 forty-four
512 forty-fourth
513
514 45th
515 forty-five
516 forty-fifth
517
518 46th
519 forty-six
520 forty-sixth
521
522 47th
523 forty-seven
524 forty-seventh
525
526 48th
527 forty-eight
528 forty-eighth
529
530 49th
531 forty-nine
532 forty-ninth
533
534 50th
535 fifty
536 fiftieth
537
538
539 51st
540 fifty-one
541 fifty-first
542
543 52nd
544 fifty-two
545 fifty-second
546
547 53rd
548 fifty-three
549 fifty-third
550
551
552 =item B<Ignored words>
553
554 In writing out dates in common forms, there are a number of words
555 that are typically not important.
556
557 There is frequently a word that appears in a phrase to designate
558 that a time is going to be specified next. In English, you would
559 use the word AT in the example:
560
561 December 3 at 12:00
562
563 The following words may be used:
564
565 at
566
567
568 Another word is used to designate one member of a set. In English,
569 you would use the words IN or OF:
570
571 1st day OF December
572 1st day IN December
573
574 The following words may be used:
575
576 of
577 in
578
579
580 Another word is use to specify that something is on a certain date. In
581 English, you would use ON:
582
583 ON July 5th
584
585 The following words may be used:
586
587 on
588
589
590 =item B<Words that set the date, time, or both>
591
592 There are some words that can be used to specify a date, a
593 time, or both relative to now.
594
595 Words that set the date are similar to the English words 'yesterday'
596 or 'tomorrow'. These are specified as a delta which is added to the
597 current time to get a date. The time is NOT set however, so the delta
598 is only partially used (it should only include year, month, week, and
599 day fields).
600
601 The following words may be used:
602
603 ereyesterday -0:0:0:2:0:0:0
604 overmorrow +0:0:0:2:0:0:0
605 today 0:0:0:0:0:0:0
606 tomorrow +0:0:0:1:0:0:0
607 yesterday -0:0:0:1:0:0:0
608
609
610 Words that set only the time of day are similar to the English words
611 'noon' or 'midnight'.
612
613 The following words may be used:
614
615 midnight 00:00:00
616 noon 12:00:00
617
618
619 Words that set the entire time and date (relative to the current
620 time and date) are also available.
621
622 In English, the word 'now' is one of these.
623
624 The following words may be used:
625
626 now 0:0:0:0:0:0:0
627
628
629 =item B<Hour/Minute/Second separators>
630
631 When specifying the time of day, the most common separator is a colon (:)
632 which can be used for both separators.
633
634 Some languages use different pairs. For example, French allows you to
635 specify the time as 13h30:20, so it would use the following pairs:
636
637 : :
638 h :
639
640 The first column is the hour-minute separator and the second column is
641 the minute-second separator. Both are perl regular expressions. When
642 creating a new translation, be aware that regular expressions with utf-8
643 characters may be tricky. For example, don't include the expression '[x]'
644 where 'x' is a utf-8 character.
645
646 A pair of colons is ALWAYS allowed for all languages. If a language allows
647 additional pairs, they are listed here:
648
649 Not defined in this language
650
651
652 =item B<Fractional second separator>
653
654 When specifying fractional seconds, the most common way is to use a
655 decimal point (.). Some languages may specify a different separator
656 that might be used. If this is done, it is a regular expression.
657
658 The decimal point is ALWAYS allowed for all languages. If a language allows
659 another separator, it is listed here:
660
661 Not defined in this language
662
663
664 =back
665
666 =head1 KNOWN BUGS
667
668 None known.
669
670 =head1 BUGS AND QUESTIONS
671
672 Please refer to the L<Date::Manip::Problems> documentation for
673 information on submitting bug reports or questions to the author.
674
675 =head1 SEE ALSO
676
677 L<Date::Manip> - main module documentation
678
679 =head1 LICENSE
680
681 This script is free software; you can redistribute it and/or
682 modify it under the same terms as Perl itself.
683
684 =head1 AUTHOR
685
686 Sullivan Beck ([email protected])
687
688 =cut