Forrest logo
back to context overview

date

List of commands for date:

  • date:ai:90e4b Prints the current time in 24-hour HH:MM:SS format
    $ date +"%T"
    try on your machine
    explain this command
  • date:show:default Displays the current server date in UTC timezone
    $ date -u +"%Y-%m-%d %H:%M:%S"
    try on your machine
    explain this command
  • date:tldr:249fd date: Display the current date using the default locale's format.
    $ date +%c
    try on your machine
    explain this command
  • date:tldr:284c4 date: Display the current date in UTC, using the ISO 8601 format.
    $ date -u +%Y-%m-%dT%H:%M:%S%Z
    try on your machine
    explain this command
  • date:tldr:31078 date: Display the current ISO week number.
    $ date +%V
    try on your machine
    explain this command
  • date:tldr:55615 date: Convert a date specified as a Unix timestamp to the default format.
    $ date -d @${1473305798}
    try on your machine
    explain this command
  • date:tldr:5fc73 date: Display the current system date and prompt to enter a new date (leave empty to keep unchanged).
    $ date
    try on your machine
    explain this command
  • date:tldr:96b8f date: Set the current date using the format `MMDDhhmmYYYY.ss` (`YYYY` and `.ss` are optional).
    $ date ${093023592021-59}
    try on your machine
    explain this command
  • date:tldr:9c1f1 date: Change the current system date to a specific date.
    $ date ${month}-${day}-${year}
    try on your machine
    explain this command
  • date:tldr:acd92 date: Display the current date in UTC and ISO 8601 format.
    $ date -u +%Y-%m-%dT%H:%M:%SZ
    try on your machine
    explain this command
  • date:tldr:db5bb date: Display the current system date without prompting for a new date.
    $ date /t
    try on your machine
    explain this command
  • date:tldr:e9668 date: Display a specific date (represented as a Unix timestamp) using the default format.
    $ date -r 1473305798
    try on your machine
    explain this command
  • date:tldr:f3ffc date: Display the current date using the RFC-3339 format (`YYYY-MM-DD hh:mm:ss TZ`).
    $ date --rfc-3339=s
    try on your machine
    explain this command
  • date:tldr:f9bed date: Display the current date as a Unix timestamp (seconds since the Unix epoch).
    $ date +%s
    try on your machine
    explain this command
  • date:tldr:fcd8e date: Convert a given date to the Unix timestamp format.
    $ date -d "${2018-09-01 00:00}" +%s --utc
    try on your machine
    explain this command
back to context overview