date(1) - SerenityOS man pages

#Name

date - print or set the system date and time

#Synopsis

$ date [--set date] [--unix] [--iso-8601] [--rfc-3339] [--rfc-5322] [format-string]

#Description

date is a utility to set the system date and time or print the system date and time in various formats.

#Options

#Arguments

#Examples

# Print the current date and time in ISO 8601 format
$ date --iso-8601

# Print the current date in a custom format
$ date +%Y-%m-%d

# Set date to 1610017485 (UNIX time)
$ date -s 1610017485

#See Also