Relative Formats (original) (raw)
'yesterday'
Midnight of yesterday
"yesterday 14:00"
'midnight'
The time is set to 00:00:00
'today'
The time is set to 00:00:00
'now'
Now - this is simply ignored
'noon'
The time is set to 12:00:00
"yesterday noon"
'tomorrow'
Midnight of tomorrow
'back of' hour
15 minutes past the specified hour
"back of 7pm", "back of 15"
'front of' hour
15 minutes before the specified hour
"front of 5am", "front of 23"
'first day of'
Sets the day of the first of the current month. This phrase is best used together with a month name following it.
"first day of January 2008"
'last day of'
Sets the day to the last day of the current month. This phrase is best used together with a month name following it.
"last day of next month"
ordinal
space
dayname
space
'of'
Calculates the x
-th week day of the current month.
"first sat of July 2008"
'last' space
dayname
space
'of'
Calculates the last week day of the current month.
"last sat of July 2008"
number
space
? (unit
| 'week')
Handles relative time items where the value is a number.
"+5 weeks", "12 day", "-7 weekdays"
ordinal
space
unit
Handles relative time items where the value is text.
"fifth day", "second month"
'ago'
Negates all the values of previously found relative time items.
"2 days ago", "8 days ago 14:00", "2 months 5 days ago", "2 months ago 5 days", "2 days ago"
dayname
Moves to the next day of this name.
"Monday"
reltext
space
'week'
Handles the special format "weekday + last/this/next week".
"Monday next week"