date [command]
Display or set date and time
Arguments
Name | Description |
---|
command | New_time: [[[mm]dd]HH]MM[[cc]yy][.ss], output_fmt: '+' followed by user-defined format string |
Options
Name | Description |
---|
-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 |
-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 <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 |
-u | Display 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 |