date from-human for date
Convert a human readable datetime string to a datetime.
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-humanParsing human readable datetime.
> 'Last Friday at 19:45' | date from-humanParsing human readable datetime.
> 'In 5 minutes and 30 seconds' | date from-humanShow human-readable datetime parsing examples.
> date from-human --listConvert a list of human-readable datetime strings to datetimes.
> ["Today at 18:30", "Tomorrow at 09:00"] | date from-human