date from-human

For date.

Convert a human readable datetime string to a datetime.

Command Type

built-in

Signature

> date from-human {flags}

Flags

  • --list, -l: Show human-readable datetime parsing examples.

Input/output types:

input output
string datetime
nothing table
list<datetime> list<datetime>
list<string> list<datetime>

Examples

Parsing human readable datetime.

> 'Today at 18:30' | date from-human

Parsing human readable datetime.

> 'Last Friday at 19:45' | date from-human

Parsing human readable datetime.

> 'In 5 minutes and 30 seconds' | date from-human

Show human-readable datetime parsing examples.

> date from-human --list

Convert a list of human-readable datetime strings to datetimes.

> ["Today at 18:30", "Tomorrow at 09:00"] | date from-human

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.