Unit is second,
minute, hour, day,
week, month, year,
- decade, century, millenium,
+ decade, century, millennium,
or abbreviations or plurals of these units;
Direction can be ago or
empty.
For the
date_part and date_trunc
functions, arguments can be
- `year', `month', `day', `hour', `minute', and `second',
+ `year', `month',
+ `day', `hour',
+ `minute', and `second',
as well as the more specialized quantities
- `decade', `century', `millenium', `millisecond', and `microsecond'.
- date_part allows `dow'
- to return day of week and `epoch' to return seconds since 1970
- (for timestamp)
- or 'epoch' to return total elapsed seconds (for interval).
+ `decade', `century',
+ `millennium', `millisecond',
+ and `microsecond'.
+ date_part allows `dow'
+ to return day of week, 'week' to return the
+ ISO-defined week of year, and `epoch' to return
+ seconds since 1970 (for timestamp)
+ or 'epoch' to return total elapsed seconds
+ (for interval).
All templates allow the use of prefix and suffix modifiers. Modifiers are
- always valid for use in templates. The prefix 'FX' is a global modifier only.
+ always valid for use in templates. The prefix
+ 'FX' is a global modifier only.