| title | date now |
|---|---|
| categories | date |
| version | 0.103.0 |
| date | Get the current date. |
| usage | Get the current date. |
| editLink | false |
| contributors | false |
date now for date
Get the current date.
> date now {flags}
| input | output |
|---|---|
| nothing | datetime |
Get the current date and display it in a given format string.
> date now | format date "%Y-%m-%d %H:%M:%S"
Get current time in full RFC 3339 format with time zone.
> date now | format date %+
Get the time duration since 2019-04-30.
> (date now) - 2019-05-01
Get the time duration since a more specific time.
> (date now) - 2019-05-01T04:12:05.20+08:00
Get current time in RFC 2289 format with time zone.
> date now | format date