Filename | /zpool_host_mnt/mnt/home/s1/repos/perl-DateTime-Format-Alami/lib/DateTime/Format/Alami/EN.pm |
Statements | Executed 103 statements in 5.19ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 2.90ms | 2.95ms | BEGIN@8 | DateTime::Format::Alami::EN::
1 | 1 | 1 | 737µs | 1.80ms | BEGIN@14 | DateTime::Format::Alami::EN::
1 | 1 | 1 | 680µs | 4.95ms | BEGIN@91 | DateTime::Format::Alami::EN::
1 | 1 | 1 | 635µs | 712µs | BEGIN@7 | DateTime::Format::Alami::EN::
1 | 1 | 1 | 34µs | 34µs | BEGIN@6 | DateTime::Format::Alami::EN::
1 | 1 | 1 | 8µs | 19.3ms | BEGIN@92 | DateTime::Format::Alami::EN::
5 | 2 | 1 | 6µs | 6µs | w_second | DateTime::Format::Alami::EN::
5 | 2 | 1 | 5µs | 5µs | w_minute | DateTime::Format::Alami::EN::
5 | 2 | 1 | 5µs | 5µs | w_hour | DateTime::Format::Alami::EN::
4 | 3 | 1 | 4µs | 4µs | o_num | DateTime::Format::Alami::EN::
2 | 2 | 1 | 4µs | 4µs | w_jan | DateTime::Format::Alami::EN::
3 | 1 | 1 | 4µs | 4µs | w_month | DateTime::Format::Alami::EN::
3 | 1 | 1 | 4µs | 4µs | w_week | DateTime::Format::Alami::EN::
3 | 1 | 1 | 4µs | 4µs | w_year | DateTime::Format::Alami::EN::
3 | 1 | 1 | 3µs | 3µs | w_day | DateTime::Format::Alami::EN::
2 | 2 | 1 | 3µs | 3µs | w_monday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 3µs | 3µs | w_tuesday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_feb | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_thursday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_aug | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_mar | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_dec | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_friday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_jun | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_saturday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_wednesday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_apr | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_oct | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_sunday | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_sep | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_jul | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_may | DateTime::Format::Alami::EN::
1 | 1 | 1 | 2µs | 2µs | p_dateymd | DateTime::Format::Alami::EN::
2 | 2 | 1 | 2µs | 2µs | w_nov | DateTime::Format::Alami::EN::
1 | 1 | 1 | 2µs | 2µs | o_ampm | DateTime::Format::Alami::EN::
1 | 1 | 1 | 2µs | 2µs | p_which_dow | DateTime::Format::Alami::EN::
1 | 1 | 1 | 2µs | 2µs | p_date_time | DateTime::Format::Alami::EN::
1 | 1 | 1 | 2µs | 2µs | p_dur_ago | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | o_cardinal_suffix | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_dur_later | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_now | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_today | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_yesterday | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | o_date | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_time | DateTime::Format::Alami::EN::
1 | 1 | 1 | 1µs | 1µs | p_tomorrow | DateTime::Format::Alami::EN::
0 | 0 | 0 | 0s | 0s | _parse_num | DateTime::Format::Alami::EN::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package DateTime::Format::Alami::EN; | ||||
2 | |||||
3 | # DATE | ||||
4 | # VERSION | ||||
5 | |||||
6 | 2 | 66µs | 1 | 34µs | # spent 34µs within DateTime::Format::Alami::EN::BEGIN@6 which was called:
# once (34µs+0s) by main::BEGIN@0 at line 6 # spent 34µs making 1 call to DateTime::Format::Alami::EN::BEGIN@6 |
7 | 2 | 402µs | 2 | 716µs | # spent 712µs (635+77) within DateTime::Format::Alami::EN::BEGIN@7 which was called:
# once (635µs+77µs) by main::BEGIN@0 at line 7 # spent 712µs making 1 call to DateTime::Format::Alami::EN::BEGIN@7
# spent 4µs making 1 call to strict::import |
8 | 2 | 2.79ms | 2 | 2.96ms | # spent 2.95ms (2.90+49µs) within DateTime::Format::Alami::EN::BEGIN@8 which was called:
# once (2.90ms+49µs) by main::BEGIN@0 at line 8 # spent 2.95ms making 1 call to DateTime::Format::Alami::EN::BEGIN@8
# spent 11µs making 1 call to warnings::import |
9 | |||||
10 | # XXX holidays -> christmas | new year | ... | ||||
11 | # XXX timezone in time | ||||
12 | # XXX more patterns from DF:Natural | ||||
13 | |||||
14 | 2 | 1.11ms | 2 | 1.85ms | # spent 1.80ms (737µs+1.06) within DateTime::Format::Alami::EN::BEGIN@14 which was called:
# once (737µs+1.06ms) by main::BEGIN@0 at line 14 # spent 1.80ms making 1 call to DateTime::Format::Alami::EN::BEGIN@14
# spent 55µs making 1 call to Exporter::import |
15 | |||||
16 | 4 | 11µs | # spent 4µs within DateTime::Format::Alami::EN::o_num which was called 4 times, avg 975ns/call:
# 2 times (2µs+0s) by DateTime::Format::Alami::o_dur at line 366 of lib/DateTime/Format/Alami.pm, avg 1µs/call
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm
# once (700ns+0s) by DateTime::Format::Alami::o_timedur at line 390 of lib/DateTime/Format/Alami.pm | ||
17 | sub _parse_num { parse_number_en(text => $_[1]) } | ||||
18 | 3 | 8µs | # spent 4µs within DateTime::Format::Alami::EN::w_year which was called 3 times, avg 1µs/call:
# 3 times (4µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call | ||
19 | 3 | 7µs | # spent 4µs within DateTime::Format::Alami::EN::w_month which was called 3 times, avg 1µs/call:
# 3 times (4µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call | ||
20 | 3 | 7µs | # spent 4µs within DateTime::Format::Alami::EN::w_week which was called 3 times, avg 1µs/call:
# 3 times (4µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call | ||
21 | 3 | 6µs | # spent 3µs within DateTime::Format::Alami::EN::w_day which was called 3 times, avg 967ns/call:
# 3 times (3µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 967ns/call | ||
22 | 5 | 11µs | # spent 5µs within DateTime::Format::Alami::EN::w_hour which was called 5 times, avg 1µs/call:
# 3 times (3µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call
# 2 times (2µs+0s) by DateTime::Format::Alami::o_timedurwords at line 384 of lib/DateTime/Format/Alami.pm, avg 1µs/call | ||
23 | 5 | 11µs | # spent 5µs within DateTime::Format::Alami::EN::w_minute which was called 5 times, avg 1µs/call:
# 3 times (3µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call
# 2 times (2µs+0s) by DateTime::Format::Alami::o_timedurwords at line 384 of lib/DateTime/Format/Alami.pm, avg 950ns/call | ||
24 | 5 | 11µs | # spent 6µs within DateTime::Format::Alami::EN::w_second which was called 5 times, avg 1µs/call:
# 3 times (3µs+0s) by DateTime::Format::Alami::o_durwords at line 360 of lib/DateTime/Format/Alami.pm, avg 1µs/call
# 2 times (2µs+0s) by DateTime::Format::Alami::o_timedurwords at line 384 of lib/DateTime/Format/Alami.pm, avg 1µs/call | ||
25 | |||||
26 | 2 | 8µs | # spent 4µs within DateTime::Format::Alami::EN::w_jan which was called 2 times, avg 2µs/call:
# once (2µs+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm
# once (2µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm | ||
27 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_feb which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
28 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_mar which was called 2 times, avg 1µs/call:
# once (2µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
29 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_apr which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
30 | 2 | 5µs | # spent 2µs within DateTime::Format::Alami::EN::w_may which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (800ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
31 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_jun which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
32 | 2 | 5µs | # spent 2µs within DateTime::Format::Alami::EN::w_jul which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
33 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_aug which was called 2 times, avg 1µs/call:
# once (2µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
34 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_sep which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
35 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_oct which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
36 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_nov which was called 2 times, avg 950ns/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
37 | 2 | 7µs | # spent 2µs within DateTime::Format::Alami::EN::w_dec which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_monthname at line 342 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 127 of lib/DateTime/Format/Alami.pm | ||
38 | |||||
39 | 2 | 7µs | # spent 3µs within DateTime::Format::Alami::EN::w_monday which was called 2 times, avg 1µs/call:
# once (2µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
40 | 2 | 7µs | # spent 3µs within DateTime::Format::Alami::EN::w_tuesday which was called 2 times, avg 1µs/call:
# once (2µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
41 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_wednesday which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
42 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_thursday which was called 2 times, avg 1µs/call:
# once (2µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
43 | 2 | 7µs | # spent 2µs within DateTime::Format::Alami::EN::w_friday which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
44 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_saturday which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (1µs+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
45 | 2 | 6µs | # spent 2µs within DateTime::Format::Alami::EN::w_sunday which was called 2 times, avg 1µs/call:
# once (1µs+0s) by DateTime::Format::Alami::o_dow at line 350 of lib/DateTime/Format/Alami.pm
# once (900ns+0s) by DateTime::Format::Alami::new at line 138 of lib/DateTime/Format/Alami.pm | ||
46 | |||||
47 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_now which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
48 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_today which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
49 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_tomorrow which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
50 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_yesterday which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
51 | |||||
52 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::o_cardinal_suffix which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
53 | |||||
54 | 1 | 3µs | # spent 2µs within DateTime::Format::Alami::EN::p_dateymd which was called:
# once (2µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
55 | # we use the 'local' trick here in embedded code (see perlre) to be | ||||
56 | # backtrack-safe. we want to unset $m->{o_yearint} when date does not | ||||
57 | # contain year. $m->{o_yearint} might be set when we try the patterns but | ||||
58 | # might end up needing to be unset if the matching pattern ends up not | ||||
59 | # having year. | ||||
60 | "", | ||||
61 | '(?{ $DateTime::Format::Alami::_has_year = 0 })', | ||||
62 | '(?: <o_dayint><o_cardinal_suffix>? (?:\\s*|[ /-]) <o_monthname> | <o_monthname> (?:\\s*|[ /-]) <o_dayint><o_cardinal_suffix>?\\b | <o_monthint>[/-]<o_dayint>\\b )', | ||||
63 | '(?: \\s*[,/-]?\\s* <o_yearint> (?{ local $DateTime::Format::Alami::_has_year = $DateTime::Format::Alami::_has_year + 1 }))?', | ||||
64 | '(?{ delete $DateTime::Format::Alami::m->{o_yearint} unless $DateTime::Format::Alami::_has_year })', | ||||
65 | )} | ||||
66 | |||||
67 | 1 | 4µs | # spent 2µs within DateTime::Format::Alami::EN::p_dur_ago which was called:
# once (2µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
68 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_dur_later which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
69 | |||||
70 | 1 | 3µs | # spent 2µs within DateTime::Format::Alami::EN::p_which_dow which was called:
# once (2µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
71 | "", | ||||
72 | '(?{ $DateTime::Format::Alami::_offset = 0 })', | ||||
73 | "(?:", | ||||
74 | ' (?: (?:last \s+)(?{ local $DateTime::Format::Alami::_offset = -1 }) | (?:next \s+)(?{ local $DateTime::Format::Alami::_offset = 1 }) | (?:this \s+)?)', | ||||
75 | ' <o_dow>', | ||||
76 | ")", | ||||
77 | '(?{ $DateTime::Format::Alami::m->{offset} = $DateTime::Format::Alami::_offset })', | ||||
78 | )} | ||||
79 | |||||
80 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::o_date which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
81 | 1 | 3µs | # spent 2µs within DateTime::Format::Alami::EN::o_ampm which was called:
# once (2µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
82 | 1 | 3µs | # spent 1µs within DateTime::Format::Alami::EN::p_time which was called:
# once (1µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
83 | 1 | 3µs | # spent 2µs within DateTime::Format::Alami::EN::p_date_time which was called:
# once (2µs+0s) by DateTime::Format::Alami::new at line 61 of lib/DateTime/Format/Alami.pm | ||
84 | |||||
85 | # the ordering is a bit weird because: we need to apply role at compile-time | ||||
86 | # before the precomputed $RE mentions $o & $m thus creating the package | ||||
87 | # DateTime::Format::Alami and this makes Role::Tiny::With complains that DT:F:A | ||||
88 | # is not a role. then, if we are to apply the role, we need to already declare | ||||
89 | # the methods required by the role. | ||||
90 | |||||
91 | 2 | 473µs | 2 | 4.99ms | # spent 4.95ms (680µs+4.27) within DateTime::Format::Alami::EN::BEGIN@91 which was called:
# once (680µs+4.27ms) by main::BEGIN@0 at line 91 # spent 4.95ms making 1 call to DateTime::Format::Alami::EN::BEGIN@91
# spent 42µs making 1 call to Exporter::import |
92 | 1 | 107µs | 2 | 38.7ms | # spent 19.3ms (8µs+19.3) within DateTime::Format::Alami::EN::BEGIN@92 which was called:
# once (8µs+19.3ms) by main::BEGIN@0 at line 92 # spent 19.3ms making 1 call to DateTime::Format::Alami::EN::BEGIN@92
# spent 19.3ms making 1 call to Role::Tiny::With::with |
93 | |||||
94 | 3 | 4µs | 1 | 13.7ms | our $RE_DT = do { DateTime::Format::Alami::EN->new; $DateTime::Format::Alami::EN::RE_DT }; # PRECOMPUTE # spent 13.7ms making 1 call to DateTime::Format::Alami::new |
95 | 3 | 4µs | 1 | 8µs | our $RE_DUR = do { DateTime::Format::Alami::EN->new; $DateTime::Format::Alami::EN::RE_DUR }; # PRECOMPUTE # spent 8µs making 1 call to DateTime::Format::Alami::new |
96 | 3 | 2µs | 1 | 4µs | our $MAPS = do { DateTime::Format::Alami::EN->new; $DateTime::Format::Alami::EN::MAPS }; # PRECOMPUTE # spent 4µs making 1 call to DateTime::Format::Alami::new |
97 | |||||
98 | 1 | 6µs | 1; | ||
99 | # ABSTRACT: Parse human date/time/duration expression (English) | ||||
100 | |||||
101 | =for Pod::Coverage ^((adur|a|pdur|p|odur|o|w)_.+)$ | ||||
102 | |||||
103 | =head1 DESCRIPTION | ||||
104 | |||||
105 | List of known date/time expressions: | ||||
106 | |||||
107 | # p_now | ||||
108 | (just|right)? now | ||||
109 | |||||
110 | # p_today | ||||
111 | today|this day | ||||
112 | |||||
113 | # p_tomorrow | ||||
114 | tommorow | ||||
115 | |||||
116 | # p_yesterday | ||||
117 | yesterday | ||||
118 | |||||
119 | # p_dur_ago, p_dur_later | ||||
120 | 1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds (ago|later) | ||||
121 | |||||
122 | # p_dateymd | ||||
123 | may 28 | ||||
124 | 5/28 | ||||
125 | 28 may 2016 | ||||
126 | may 28, 2016 | ||||
127 | 5/28/2016 | ||||
128 | 5-28-16 | ||||
129 | |||||
130 | # p_which_dow | ||||
131 | (this|last|next) monday | ||||
132 | |||||
133 | # p_time | ||||
134 | 2pm | ||||
135 | 3.45 am | ||||
136 | (on|at)? 15:00 | ||||
137 | |||||
138 | # p_date_time | ||||
139 | june 25 2pm | ||||
140 | 2016-06-25 10:00:00 | ||||
141 | |||||
142 | List of known duration expressions: | ||||
143 | |||||
144 | # pdur_dur | ||||
145 | 1 year 2 months 3 weeks 4 days 5 hours 6 minutes 7 seconds | ||||
146 | |||||
147 | |||||
148 | =head1 SEE ALSO | ||||
149 | |||||
150 | L<DateTime::Format::Natural> |