Neurologically Paralyzing Mouseovers
Wondering what’s next for npm?Check out our public roadmap! »

@zokugun/lang.dateTypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@zokugun/lang.date

kaoscript License NPM Version Dependency Status Build Status CircleCI Coverage Status

Extends the built-in Date class.

Getting Started

In Node.js

With node previously installed:

npm install @zokugun/lang.date

Use it with kaoscript:

import '@zokugun/lang.date'
 
const d = Date.tomorrow()

Functions

  • create()
  • getTime()
  • isTime()
  • parse()
  • today()
  • tomorrow()
  • yesterday()

Methods

  • add()
  • clone()
  • difference()
  • endOf()
  • equals()
  • format()
  • future()
  • futureOrPresent()
  • getDayOfMonth()
  • getDayOfWeek()
  • getDayOfYear()
  • getDaysInMonth()
  • getDaysInYear()
  • getUTCDayOfMonth()
  • getUTCDayOfWeek()
  • getUTCDayOfYear()
  • getUTCWeek()
  • getUTCYearOfWeek()
  • getWeek()
  • getWeeksInYear()
  • getYearOfWeek()
  • isAfter()
  • isBefore()
  • isBetween()
  • isLeapYear()
  • midnight()
  • noon()
  • past()
  • pastOrPresent()
  • rewind()
  • set()
  • setDayOfMonth()
  • setDayOfWeek()
  • setDayOfYear()
  • setUTCDayOfMonth()
  • setUTCDayOfWeek()
  • setUTCDayOfYear()
  • setUTCWeek()
  • setWeek()
  • startOf()

License

MIT © Baptiste Augrain

Install

npm i @zokugun/lang.date

DownloadsWeekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

33.9 kB

Total Files

4

Last publish

Collaborators

  • avatar