| Display Methods |
The Display type exposes the following members.
| Name | Description | |
|---|---|---|
| Calendar(Moment, Moment) |
Will format a date with different strings depending on how close to referenceTime's date (today by default) the
date is.
Emulates: http://momentjs.com/docs/#/displaying/calendar-time/
| |
| Calendar(Moment, DateTime) |
Will format a date with different strings depending on how close to referenceTime's date (today by default) the
date is.
Emulates: http://momentjs.com/docs/#/displaying/calendar-time/
| |
| DaysInMonth(DateTime) |
Get the number of days in this dateTime.
| |
| DaysInMonth(Moment) |
Get the number of days in this moment.
| |
| From |
moment([2007, 0, 29]).fromNow(); // 4 years ago
moment([2007, 0, 29]).fromNow(showSuffix: false); // 4 years
Emulates http://momentjs.com/docs/#/displaying/fromnow/
| |
| UnixTimeStamp |
Returns the number of seconds since the Unix Epoch
|