15.5.3 • Published 5 years ago

@the-/date v15.5.3

Weekly downloads
382
License
MIT
Repository
github
Last release
5 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

5 years ago

15.5.2

5 years ago

15.5.1

5 years ago

15.5.0

6 years ago

15.4.11

6 years ago

15.4.2

6 years ago

15.4.1

6 years ago

15.2.1

6 years ago

15.2.0

6 years ago

15.1.4

6 years ago

15.1.3

6 years ago

15.1.2

6 years ago

15.1.0

6 years ago

15.0.3

6 years ago

15.0.2

6 years ago