This addon provides date and time helpers for Ember templates and components.
To install:
ember install ember-datetime-fns
datetime-get-date
datetime-get-day
datetime-get-full-year
datetime-get-hours
datetime-get-milliseconds
datetime-get-minutes
datetime-get-month
datetime-get-seconds
datetime-get-time
datetime-get-timezone-offset
datetime-get-utc-date
datetime-get-utc-day
datetime-get-utc-full-year
datetime-get-utc-hours
datetime-get-utc-minutes
datetime-get-utc-month
datetime-get-utc-seconds
datetime-now
datetime-to-date-string
datetime-to-iso-string
datetime-to-locale-date-string
datetime-to-locale-string
datetime-to-locale-time-string
datetime-to-time-string
datetime-to-utc-string
Return the day of month. See Date.getDate() for details on the Date.getDate() function.
Return the day of week. See Date.getDay() for details on the Date.getDay() function.
Return the year. See Date.getFullYear() for details on the Date.getFullYear() function.
Return the hour of day. See Date.getHours() for details on the Date.getHours() function.
Return the milliseconds of second. See Date.getMilliseconds() for details on the Date.getMilliseconds() function.
Return the minutes of hour. See Date.getMinutes() for details on the Date.getMinutes() function.
Return the month of year. See Date.getMonth() for details on the Date.getMonth() function.
Return the seconds of minute. See Date.getSeconds() for details on the Date.getSeconds() function.
Return the milliseconds since the unix epoch. See Date.getTime() for details on the Date.getTime() function.
Return the timezone offset. See Date.getTimezoneOffset() for details on the Date.getTimezoneOffset() function.
Return the UTC day of month. See Date.getUTCDate() for details on the Date.getUTCDate() function.
Return the UTC day of week. See Date.getUTCDay() for details on the Date.getUTCDay() function.
Return the UTC year. See Date.getUTCFullYear() for details on the Date.getUTCFullYear() function.
Return the UTC hour of day. See Date.getUTCHours() for details on the Date.getUTCHours() function.
Return the UTC minutes of hour. See Date.getUTCMinutes() for details on the Date.getUTCMinutes() function.
Return the UTC month of year. See Date.getUTCMonth() for details on the Date.getUTCMonth() function.
Return the UTC seconds of minute. See Date.getUTCSeconds() for details on the Date.getUTCSeconds() function.
Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. See Date.now() for details on the Date.now() function.
Return the date string. See Date.toDateString() for details on the Date.toDateString() function.
Return the ISO string. See Date.toISOString() for details on the Date.toISOString() function.
Return the locale formatted date. See Date.toLocaleDateString() for details on the Date.toLocaleDateString() function.
Return the locale formatted date and time. See Date.toLocaleString() for details on the Date.toLocaleString() function.
Return the locale formatted time. See Date.toLocaleTimeString() for details on the Date.toLocaleTimeString() function.
Return the time string. See Date.toTimeString() for details on the Date.toTimeString() function.
Return the UTC string. See Date.toUTCString() for details on the Date.toUTCString() function.
- See ember-array-fns for array based helpers.
- See ember-intl-fns for internationalization based helpers.
- See ember-logic-fns for logical based helpers.
- See ember-math-fns for math based helpers.
- See ember-number-fns for number based helpers.
- See ember-string-fns for string based helpers.
- Ember.js v3.4 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
See the Contributing guide for details.
This project is licensed under the MIT License.