1DateTime::Format::NaturUasle:r:LCaonngt:r:iEbNu(t3e)d PeDralteDToicmuem:e:nFtoartmiaotn::Natural::Lang::EN(3)
2
3
4

NAME

6       DateTime::Format::Natural::Lang::EN - English language metadata
7

DESCRIPTION

9       "DateTime::Format::Natural::Lang::EN" provides the english specific
10       grammar and variables. This class is loaded if the user either
11       specifies the english language or implicitly.
12

EXAMPLES

14       Below are some examples of natural language date/time input in english
15       (be aware that the parser does usually not distinguish between
16       lower/upper case; furthermore, many expressions allow for additional
17       leading/trailing time and all times are also parsable with precision in
18       (milli)seconds):
19
20   Simple
21        now
22        yesterday
23        today
24        tomorrow
25        morning
26        afternoon
27        evening
28        noon
29        midnight
30        yesterday at noon
31        yesterday at midnight
32        today at noon
33        today at midnight
34        tomorrow at noon
35        tomorrow at midnight
36        this morning
37        this afternoon
38        this evening
39        yesterday morning
40        yesterday afternoon
41        yesterday evening
42        today morning
43        today afternoon
44        today evening
45        tomorrow morning
46        tomorrow afternoon
47        tomorrow evening
48        thursday morning
49        thursday afternoon
50        thursday evening
51        6:00 yesterday
52        6:00 today
53        6:00 tomorrow
54        5am yesterday
55        5am today
56        5am tomorrow
57        4pm yesterday
58        4pm today
59        4pm tomorrow
60        last millisecond
61        this millisecond
62        next millisecond
63        last second
64        this second
65        next second
66        last minute
67        this minute
68        next minute
69        last hour
70        this hour
71        next hour
72        last day
73        this day
74        next day
75        last week
76        this week
77        next week
78        last month
79        this month
80        next month
81        last quarter
82        this quarter
83        next quarter
84        last year
85        this year
86        next year
87        last friday
88        this friday
89        next friday
90        tuesday last week
91        tuesday this week
92        tuesday next week
93        last week wednesday
94        this week wednesday
95        next week wednesday
96        10 milliseconds ago
97        10 seconds ago
98        10 minutes ago
99        10 hours ago
100        10 days ago
101        10 weeks ago
102        10 months ago
103        10 years ago
104        in 5 milliseconds
105        in 5 seconds
106        in 5 minutes
107        in 5 hours
108        in 5 days
109        in 5 weeks
110        in 5 months
111        in 5 years
112        saturday
113        sunday 11:00
114        yesterday at 4:00
115        today at 4:00
116        tomorrow at 4:00
117        yesterday at 6:45am
118        today at 6:45am
119        tomorrow at 6:45am
120        yesterday at 6:45pm
121        today at 6:45pm
122        tomorrow at 6:45pm
123        yesterday at 2:32 AM
124        today at 2:32 AM
125        tomorrow at 2:32 AM
126        yesterday at 2:32 PM
127        today at 2:32 PM
128        tomorrow at 2:32 PM
129        yesterday 02:32
130        today 02:32
131        tomorrow 02:32
132        yesterday 2:32am
133        today 2:32am
134        tomorrow 2:32am
135        yesterday 2:32pm
136        today 2:32pm
137        tomorrow 2:32pm
138        wednesday at 14:30
139        wednesday at 02:30am
140        wednesday at 02:30pm
141        wednesday 14:30
142        wednesday 02:30am
143        wednesday 02:30pm
144        friday 03:00 am
145        friday 03:00 pm
146        sunday at 05:00 am
147        sunday at 05:00 pm
148        2nd monday
149        100th day
150        4th february
151        november 3rd
152        last june
153        next october
154        6 am
155        5am
156        5:30am
157        8 pm
158        4pm
159        4:20pm
160        06:56:06 am
161        06:56:06 pm
162        mon 2:35
163        1:00 sun
164        1am sun
165        1pm sun
166        1:00 on sun
167        1am on sun
168        1pm on sun
169        12:14 PM
170        12:14 AM
171
172   Complex
173        yesterday 7 milliseconds ago
174        yesterday 7 seconds ago
175        yesterday 7 minutes ago
176        yesterday 7 hours ago
177        yesterday 7 days ago
178        yesterday 7 weeks ago
179        yesterday 7 months ago
180        yesterday 7 years ago
181        today 5 milliseconds ago
182        today 5 seconds ago
183        today 5 minutes ago
184        today 5 hours ago
185        today 5 days ago
186        today 5 weeks ago
187        today 5 months ago
188        today 5 years ago
189        tomorrow 3 milliseconds ago
190        tomorrow 3 seconds ago
191        tomorrow 3 minutes ago
192        tomorrow 3 hours ago
193        tomorrow 3 days ago
194        tomorrow 3 weeks ago
195        tomorrow 3 months ago
196        tomorrow 3 years ago
197        2 milliseconds before now
198        2 seconds before now
199        2 minutes before now
200        2 hours before now
201        2 days before now
202        2 weeks before now
203        2 months before now
204        2 years before now
205        4 milliseconds from now
206        4 seconds from now
207        4 minutes from now
208        4 hours from now
209        4 days from now
210        4 weeks from now
211        4 months from now
212        4 years from now
213        6 in the morning
214        4 in the afternoon
215        9 in the evening
216        monday 6 in the morning
217        monday 4 in the afternoon
218        monday 9 in the evening
219        last sunday at 21:45
220        monday last week
221        6th day last week
222        6th day this week
223        6th day next week
224        12th day last month
225        12th day this month
226        12th day next month
227        1st day last year
228        1st day this year
229        1st day next year
230        1st tuesday last november
231        1st tuesday this november
232        1st tuesday next november
233        11 january next year
234        11 january this year
235        11 january last year
236        6 milliseconds before yesterday
237        6 seconds before yesterday
238        6 minutes before yesterday
239        6 hours before yesterday
240        6 milliseconds before today
241        6 seconds before today
242        6 minutes before today
243        6 hours before today
244        6 milliseconds before tomorrow
245        6 seconds before tomorrow
246        6 minutes before tomorrow
247        6 hours before tomorrow
248        3 milliseconds after yesterday
249        3 seconds after yesterday
250        3 minutes after yesterday
251        3 hours after yesterday
252        3 milliseconds after today
253        3 seconds after today
254        3 minutes after today
255        3 hours after today
256        3 milliseconds after tomorrow
257        3 seconds after tomorrow
258        3 minutes after tomorrow
259        3 hours after tomorrow
260        10 milliseconds before noon
261        10 seconds before noon
262        10 minutes before noon
263        10 hours before noon
264        10 milliseconds before midnight
265        10 seconds before midnight
266        10 minutes before midnight
267        10 hours before midnight
268        5 milliseconds after noon
269        5 seconds after noon
270        5 minutes after noon
271        5 hours after noon
272        5 milliseconds after midnight
273        5 seconds after midnight
274        5 minutes after midnight
275        5 hours after midnight
276        noon last friday
277        midnight last friday
278        noon this friday
279        midnight this friday
280        noon next friday
281        midnight next friday
282        last friday at 20:00
283        this friday at 20:00
284        next friday at 20:00
285        1:00 last friday
286        1:00 this friday
287        1:00 next friday
288        1am last friday
289        1am this friday
290        1am next friday
291        1pm last friday
292        1pm this friday
293        1pm next friday
294        5 am last monday
295        5 am this monday
296        5 am next monday
297        5 pm last monday
298        5 pm this monday
299        5 pm next monday
300        last wednesday 7am
301        this wednesday 7am
302        next wednesday 7am
303        last wednesday 7pm
304        this wednesday 7pm
305        next wednesday 7pm
306        last tuesday 11 am
307        this tuesday 11 am
308        next tuesday 11 am
309        last tuesday 11 pm
310        this tuesday 11 pm
311        next tuesday 11 pm
312        yesterday at 13:00
313        today at 13:00
314        tomorrow at 13
315        2nd friday in august
316        3rd wednesday in november
317        tomorrow 1 year ago
318        saturday 3 months ago at 17:00
319        saturday 3 months ago at 5:00am
320        saturday 3 months ago at 5:00pm
321        11 january 2 years ago
322        4th day last week
323        8th month last year
324        8th month this year
325        8th month next year
326        6 mondays from now
327        fri 3 months ago at 5am
328        wednesday 1 month ago at 8pm
329        final thursday in april
330        last thursday in april
331        beginning of last month
332        end of last month
333
334   Timespans
335        monday to friday
336        1 April to 31 August
337        1999-12-31 to tomorrow
338        now to 2010-01-01
339        2009-03-10 9:00 to 11:00
340        26 oct 10:00 am to 11:00 am
341        jan 1 to 2
342        16:00 nov 6 to 17:00
343        may 2nd to 5th
344        100th day to 200th
345        6am dec 5 to 7am
346        30th to 31st dec
347        30th to dec 31st
348        21:00 to mar 3 22:00
349        21:00 to 22:00 mar 3
350        10th to 20th day
351        1/3 to 2/3
352        2/3 to in 1 week
353        3/3 21:00 to in 5 days
354        first day of 2009 to last day of 2009
355        first day of may to last day of may
356        first to last day of 2008
357        first to last day of september
358        for 4 milliseconds
359        for 4 seconds
360        for 4 minutes
361        for 4 hours
362        for 4 days
363        for 4 weeks
364        for 4 months
365        for 4 years
366
367   Specific
368        march
369        january 11
370        11 january
371        18 oct 17:00
372        18 oct 5am
373        18 oct 5pm
374        18 oct 5 am
375        18 oct 5 pm
376        dec 25
377        feb 28 3:00
378        feb 28 3am
379        feb 28 3pm
380        feb 28 3 am
381        feb 28 3 pm
382        19:00 jul 1
383        7am jul 1
384        7pm jul 1
385        7 am jul 1
386        7 pm jul 1
387        jan 24, 2011 12:00
388        jan 24, 2011 12am
389        jan 24, 2011 12pm
390        may 27th
391        2005
392        march 1st 2009
393        October 2006
394        february 14, 2004
395        jan 3 2010
396        3 jan 2000
397        2010 october 28
398        2011-jan-04
399        27/5/1979
400        1/3
401        1/3 16:00
402        3/1
403        3/1 16:00
404        4:00
405        17:00
406        3:20:00
407        -5min
408        +2d
409        20111018000000
410        2016-06-19T12:12:11
411
412   Aliases
413        1 msec ago
414        4 msecs ago
415        1 sec ago
416        10 secs ago
417        1 min ago
418        5 mins ago
419        1 hr ago
420        3 hrs ago
421        1 yr ago
422        7 yrs ago
423        yesterday @ noon
424        tues this week
425        final thurs in sep
426        tues
427        thurs
428        thur
429

SEE ALSO

431       DateTime::Format::Natural
432

AUTHOR

434       Steven Schubiger <schubiger@cpan.org>
435

LICENSE

437       This program is free software; you may redistribute it and/or modify it
438       under the same terms as Perl itself.
439
440       See <http://dev.perl.org/licenses/>
441
442
443
444perl v5.36.0                      2023-02D-a0t5eTime::Format::Natural::Lang::EN(3)
Impressum