15.5.3 • Published 3 years ago

@the-/date v15.5.3

Weekly downloads
382
License
MIT
Repository
github
Last release
3 years ago

@the-/date

npm Version

Date utility for the-framework

Installation

$ npm install @the-/date --save

Usage

'use strict'

const theDate = require('@the-/date')

async function tryExample() {
  console.log(theDate().addHours(3).toDate()) // 3 hours later

  const date = theDate('2016/10/10', { lang: 'ja' })
  console.log(date.format('lll')) // -> "2016年10月10日 00:00"
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

15.5.3

3 years ago

15.5.2

4 years ago

15.5.1

4 years ago

15.5.0

4 years ago

15.4.11

5 years ago

15.4.2

5 years ago

15.4.1

5 years ago

15.2.1

5 years ago

15.2.0

5 years ago

15.1.4

5 years ago

15.1.3

5 years ago

15.1.2

5 years ago

15.1.0

5 years ago

15.0.3

5 years ago

15.0.2

5 years ago