This package has been deprecated

Author message:

move to @the-/date ( https://github.com/the-labo/the/tree/master/packages/date#readme )

the-date

3.0.21 • Public • Published

the-date

Build Status npm Version JS Standard

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

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-date

Weekly Downloads

6

Version

3.0.21

License

MIT

Unpacked Size

406 kB

Total Files

88

Last publish

Collaborators

  • okunishinishi