/usr/share/doc/node-date-time/readme.md is in node-date-time 2.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | # date-time [![Build Status](https://travis-ci.org/sindresorhus/date-time.svg?branch=master)](https://travis-ci.org/sindresorhus/date-time)
> Pretty datetime: `2014-01-09 06:46:01`
## Install
```
$ npm install --save date-time
```
## Usage
```js
const dateTime = require('date-time');
dateTime();
//=> '2017-05-20 17:07:05'
dateTime({date: new Date(1989, 2, 4, 10)});
//=> '1989-03-04 09:00:00'
dateTime({showTimeZone: true});
//=> '2017-05-20 17:07:05 UTC+7'
dateTime({local: false});
//=> '2017-05-20 10:07:05'
dateTime({local: false, showTimeZone: true});
//=> '2017-05-20 10:07:05 UTC'
dateTime({showMilliseconds: true});
//=> '2017-05-20 17:07:05 6ms'
```
## API
### dateTime([options])
### options
Type: `Object`
#### date
Type: `Date`<br>
Default: `new Date()`
Custom date.
#### local
Type: `boolean`<br>
Default: `true`
Show the date in the local time zone.
#### showTimeZone
Type: `boolean`<br>
Default: `false`
Show the UTC time zone postfix.
#### showMilliseconds
Type: `boolean`<br>
Default: `false`
Show the milliseconds in the date if any.
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)
|