Extends the built-in Date class to work only on the UTC timezone.
The weeks are defined by the ISO 8601.
With node previously installed:
npm install @zokugun/lang.date
Use it with kaoscript
:
import '@zokugun/lang.date'
const d = Date.tomorrow()
- create()
- getTime()
- isTime()
- today()
- tomorrow()
- yesterday()
- add()
- clone()
- difference()
- endOf()
- equals()
- format()
- future()
- futureOrPresent()
- getEpochTime()
- getDayOfMonth()
- getDayOfWeek()
- getDayOfYear()
- getDaysInMonth()
- getDaysInYear()
- getWeek()
- getWeeksInYear()
- getYearOfWeek()
- isAfter()
- isBefore()
- isBetween()
- isLeapYear()
- midnight()
- noon()
- past()
- pastOrPresent()
- rewind()
- set()
- setDayOfMonth()
- setDayOfWeek()
- setDayOfYear()
- setWeek()
- startOf()
MIT © Baptiste Augrain