date [new_time OR output_fmt]
Display or set date and time
Arguments
Name | Description |
---|
new_time OR output_fmt | New_time: [[[mm]dd]HH]MM[[cc]yy][.ss], output_fmt: '+' followed by user-defined format string |
Options
Name | Description |
---|
-d <dst> | Set the kernel's value for daylight saving time |
-f <input_fmt> <new_date> | Use specified format for input instead of the default [[[mm]dd]HH]MM[[cc]yy][.ss] format |
-j | Don't try to set the date |
-n | Only set time on the current machine, instead of all machines in the local group |
-R | Use RFC 2822 date and time output format |
-r <seconds> | Print the date and time represented by the specified number of seconds since the Epoch |
-t <minutes_west> | Set the system's value for minutes west of GMT |
-u | Display or set the date in UTC (Coordinated Universal) time |
-v <val> | Adjust and print (but don't set) the second, minute, hour, month day, week day, month, or year according to val |