date [command]

Display or set date and time

Arguments

NameDescription
commandNew_time: [[[mm]dd]HH]MM[[cc]yy][.ss], output_fmt: '+' followed by user-defined format string

Options

NameDescription
-d <command>Set the kernel's value for daylight saving time
-f <command> <command>Use specified format for input instead of the default [[[mm]dd]HH]MM[[cc]yy][.ss] format
-jDon't try to set the date
-nOnly set time on the current machine, instead of all machines in the local group
-RUse RFC 2822 date and time output format
-r <command>Print the date and time represented by the specified number of seconds since the Epoch
-t <command>Set the system's value for minutes west of GMT
-uDisplay or set the date in UTC (Coordinated Universal) time
-v <command>Adjust and print (but don't set) the second, minute, hour, month day, week day, month, or year according to val