mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
438 B
438 B
title | layout | version |
---|---|---|
date now | command | 0.59.0 |
Get the current date.
Signature
> date now
Examples
Get the current date and display it in a given format string.
> date now | date format "%Y-%m-%d %H:%M:%S"
Get the time duration from 2019-04-30 to now
> (date now) - 2019-05-01
Get the time duration since a more accurate time
> (date now) - 2019-05-01T04:12:05.20+08:00