tzdateutils
v1.4.5
Published
Date and Time utilities
Downloads
76
Readme
Exported API
export function isValidDate(date) {...}
export function getWeek(date) {...}
export function getWeekYear(date) {...}
export function getISODateString(date, separator) {...}
export function getTimeString(date) {...}
export function getISODay(date) {...}
export function getDaysFrom(date, from) {...}
export function getTotalDaysInMonth(date) {...}
export function withParsedISODate(date, str) {...}
export function getEpoch(date) {...}
export function addSeconds(date, seconds) {...}
export function addDays(date, days) {...}
export function addMonths(date, months) {...}
export function addYears(date, years) {...}
export function addHours(date, h) {...}
export function addMinutes(date, m) {...}
export function toStartOfDay(date) {...}
export function toEndOfDay(date) {...}
export function firstDayOfWeek(date) {...}
export function lastDayOfWeek(date) {...}
export function firstDayOfMonth(date) {...}
export function lastDayOfMonth(date) {...}
/**
* Copy time from `other` date to date while
* preserving year, month and day.
*/
export function withTime(date, other) {...}
export function withSeconds(date, seconds) {
export function withParsedTime(date, time) {...}
export function firstTimeAfter(date, other) {...}
export function print_duration(timestamp) {...}
export function print_duration_long(timestamp) {...}
/**
* return duration with seconds
*/
export function print_duration_full(timestamp) {...}
export function parseISODateTime(t) {...}
export function parseISODate(d) {...}