work.suroh.tk/node_modules/date-time
suroh 410082595a init 11ty commit 2019-12-02 13:22:45 +01:00
..
index.js init 11ty commit 2019-12-02 13:22:45 +01:00
package.json init 11ty commit 2019-12-02 13:22:45 +01:00
readme.md init 11ty commit 2019-12-02 13:22:45 +01:00

readme.md

date-time Build Status

Pretty UTC datetime: 2014-01-09 06:46:01 UTC

Install

Install with npm

npm install --save date-time

Example

var dateTime = require('date-time');

dateTime();
//=> 2014-01-09 06:46:01 UTC

dateTime(new Date(2050, 1, 2));
//=> 2050-02-01 23:00:00 UTC

API

dateTime(date)

date

Type: Date
Default: new Date()

License

MIT © Sindre Sorhus