DATE COMMAND
date - print or set the system date and time
SYNOPSIS : -
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
DESCRIPTION : -
Display the current time in the given FORMAT, or set the system date. Mandatory arguments to long options are mandatory for short options too.
To run Livetime :-
Manual of date : -
man date
It gives the more information about date command
OPTIONS
➡️ To know the VERSION
--version :output version information and exit
date --version
➡️ To print WEEK
▶ In shortcut form
%a locale's abbreviated weekday name
date +%a
▶ In full form
%A locale's full weekday name
date +%A
➡️To print MONTH
▶%b locale's abbreviated month name
date +%b
▶ %B locale's full month name
date +%B
➡️To print DATE
▶ %d day of month
date +%d
▶ %D date; same as %m/%d/%y
date +%D
▶ %F full date; same as %Y-%m-%d
date +%F
➡️To print YEAR
▶ %C except omit last two digits (e.g., 20)
date +%C
▶ %j day of year (001..366)
date +%j
➡️To print TIME
▶ 24 hours format
date +%H
▶ 12 hours format
date +%I
▶ %M minute (00..59)
date +%M
▶ %N nanoseconds (000000000..999999999)
date +%N
▶ %r locale's 12-hour clock time
date +%r
▶ %T time; same as %H:%M:%S
date +%T
➡️ To know more about date command
date --help