35. System Context - Date
Contents
Linux provides commands that allow you to view system’s date information, and with these commands, you can quickly get the date related information.
System Date
We can use the date command to get or set the date of the system:
|
|
Locale Datetime
|
|
Locale Date
|
|
Locale Weekday - Abbreviation
|
|
Locale Weekday - Full Name
|
|
Locale Month - Abbreviation
|
|
Locale Month - Full Name
|
|
Date - YYYY-MM-DD (ISO 8601 format)
|
|
Date - DD/MM/YY
|
|
Century
|
|
Year - YYYY
|
|
Year - YY
|
|
Month - MM
|
|
Week of Year - 00 to 53 (First Day Monday)
|
|
Week of Year - 00 to 53 (First Day Sunday)
|
|
ISO Week Number Year - YY
|
|
ISO Week Number Year - YYYY
|
|
Day of Week - Zero to Six
|
|
Day of Week - One to Seven
|
|
Day of Month
|
|
Day of Month - Space Padded
|
|
Day of Year
|
|
Day or Days Ago
|
|
|
|
Day or Days Hence
|
|
|
|
Month or Months Ago
|
|
|
|
Month or Months Hence
|
|
|
|
Year or Years Ago
|
|
|
|
Year or Years Hence
|
|
|
|
References 21 System context, 21.1.2 Date conversion specifiers, 21.1.7 Examples of date
Author Dong Chen
LastMod Fri Mar 8 2019