> Common
> Details
the given format controls the output, and the sequence is interpreted as follows:Percent percent of a text%a the day abbreviation of the current locale (for example: Days, for Sunday)%a The full name of the current locale (for example: Sunday)%b The monthly abbreviation of the current locale (for example: one, for January)%B The full name of the current locale (for example: January)Date and time of the current locale of%c (for example: Thursday, March 3, 2005 at: to: -) %c century; For example,%Y, typically omitting the last two digits of the current year (for example: -) %d date by month (for example: on) %d Date by month; equal to%m/%d/%y%e date by month, add space, equals%_d%F full date format, equivalent to%y-%m-%D%g iso-8601The last two bits of the format year (see%G)%G iso-8601Format year (see%V), general only and%V used in combination%h equals%b%H hours (xx- at) %I Hoursxx- A) %j Date of year (001-366) When%k (0- at) When%l (1- A) %m Month ( on- A) %M min (xx- -) %N line Break%N nanoseconds (000000000-999999999) %p the current locale."Morning"Or"Afternoon", the output is empty when unknown%P and%p similar, but output lowercase letters%r the current locale. Ahour clock time (e.g.: One: One:Genevapm)%R -Hours and minutes of time, equivalent to%h:%M%s from UTC time1970- on- on xx:xx:xxThe number of seconds elapsed since%s seconds (xx- -) %t Output tab tab%T time, equal to%h:%m:%S%u Week,1Representative Monday%u week of the year, with Sunday as the first day of each week (xx- -) %V iso-8601The week of the year under the format specification, with Monday being the first day of each week ( on- -) %WThe first day of the week (0-6),0Representative Monday%W Week of the year, with Monday as the first day of each week (xx- -) The date description under the current locale of%x (for example: A/ to/ About) The time description under the current locale of%x (for example: at: -: -) %y the last two digits of the year (xx- About) %Y Year%z +HHMM Digital Time zone (for example,-0400) %:z +hh:mm Digital Time zone (for example,-Geneva:xx) %::z +HH:MM:SS Digital Time zone (for example,-Geneva:xx:xx) %:::z Digital time zone with the necessary precision (for example,-Geneva, + to: -) %Z time zone abbreviations by alphabet (for example, EDT)
Linux formatted string