ruạṛ
# date-time [](https://travis-ci.org/sindresorhus/date-time) > Pretty UTC datetime: `2014-01-09 06:46:01 UTC` ## Install ``` $ npm install --save date-time ``` ## Usage ```js const dateTime = require('date-time'); dateTime(); //=> '2016-07-20 11:24:28 UTC' dateTime(new Date(1989, 2, 4, 10)); //=> '1989-03-04 09:00:00 UTC' dateTime(new Date(), {local: true}); //=> '2016-07-20 13:24:28 UTC+2' ``` ## API ### dateTime([date], [options]) #### date Type: `Date`<br> Default: `new Date()` Custom date. ### options Type: `Object` #### local Type: `boolean`<br> Default: `false` Show the date in the local time zone. ## License MIT © [Sindre Sorhus](https://sindresorhus.com)
cải xoăn