A5.d.date.relativegenerate Namespace
Description
The namespace for the methods used to generate time units in relative dates. See Date.toRelative.
Methods
- day Method
Method used to generate how days should be representation in a relative date. For example turning "1" into "1 day", and "3" into "3 days". See Date.toRelative.
- hour Method
Method used to generate how hours should be representation in a relative date. For example turning "1" into "1 hour", and "3" into "3 hours". See Date.toRelative.
- minute Method
Method used to generate how minutes should be representation in a relative date. For example turning "1" into "1 minute", and "3" into "3 minutes". See Date.toRelative.
- month Method
Method used to generate how months should be representation in a relative date. For example turning "1" into "1 month", and "3" into "3 months". See Date.toRelative.
- second Method
Method used to generate how seconds should be representation in a relative date. For example turning "1" into "1 second", and "3" into "3 seconds". See Date.toRelative.
- week Method
Method used to generate how weeks should be representation in a relative date. For example turning "1" into "1 week", and "3" into "3 weeks". See Date.toRelative.
- year Method
Method used to generate how years should be representation in a relative date. For example turning "1" into "1 year", and "3" into "3 years". See Date.toRelative.