Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

date humanize for date

Print a 'humanized' format for the date, relative to now.

Signature

> date humanize {flags}

Input/output types:

inputoutput
datetimestring
stringstring
list<datetime>list<string>
list<string>list<string>

Examples

Print a 'humanized' format for the date, relative to now.

> "2021-10-22 20:00:12 +01:00" | date humanize

Humanize a list of datetimes.

> [2021-10-22T20:00:12+01:00, 2021-10-23T20:00:00+01:00] | date humanize

Humanize a list of date strings.

> ["2021-10-22 20:00:12 +01:00", "2021-10-22 21:00:00 +01:00"] | date humanize