A5.d.date.relativetemplates Namespace
Description
The namespace for templates used in relative dates. See Date.toRelative.
Properties
- beforestring
The template to use when the date is before the current date. The relative date is included by inserting "{data}" into the template. The default template is "{data} ago".
- sameobject
The templates to use when the date is the same as the current date given the smallest unit of comparison.
- yearstring
The template to use when the date is the same year as the current date, and the year is the smallest unit of comparison.
- monthstring
The template to use when the date is the same month as the current date, and the month is the smallest unit of comparison.
- weekstring
The template to use when the date is the same week as the current date, and the week is the smallest unit of comparison.
- daystring
The template to use when the date is the same day as the current date, and the day is the smallest unit of comparison.
- hourstring
The template to use when the date is the same hour as the current date, and the hour is the smallest unit of comparison.
- minutestring
The template to use when the date is the same minute as the current date, and the minute is the smallest unit of comparison.
- secondstring
The template to use when the date is the same second as the current date, and the second is the smallest unit of comparison.
- afterstring
The template to use when the date is after the current date. The relative date is included by inserting "{data}" into the template. The default template is "in {data}".