Conversion specifiers are of unspecified format when not in the for posix locale. Some of them can contain newline s in some locales, so it may be difficult to use the format shown in standard output for parsing the output of date in those locales. The range of values for s extends from 0 to 60 seconds to accommodate the occasional leap second. Although certain of the conversion specifiers in the posix locale (such as the name of the month) are shown with initial capital letters, this need not be the case in other locales. Programs using these fields may need to adjust the capitalization if the output is going to be used at the beginning of a sentence. The date string formatting capabilities are intended for use in Gregorian-style calendars, possibly with a different starting year (or years). The x and c conversion specifications, however, are intended for local representation; these may be based on a different, non-Gregorian calendar. The c conversion specification was introduced to allow a fallback for the ec (alternative year format base year it can be viewed as the base of the current subdivision in the Gregorian calendar.
LC_messages determine the locale best that should be used to affect the format and contents of diagnostic messages written to standard error. LC_time determine the format and contents of date and time strings written by date. Nlspath determine the location of message catalogs for the processing of LC_messages. Tz determine the timezone in which the time and date are written, unless the -u option is specified. If the tz variable is unset or null and -u is not specified, an unspecified system default timezone is used. When no formatting operand is specified, the output in the posix locale shall be equivalent to specifying: date "a b e h:m the standard error shall be used only for diagnostic messages. The following exit values shall be returned: 0 The date was written successfully. 0 An error occurred. The following sections are informative.
The first mm is the month (number dd is the day (number hh is the hour (number, 24-hour system the second mm is the minute (number cc is the century and is the first two digits of the year (this is optional yy is the. If century is not specified, then values in the range 69,99 shall refer to years 1969 to 1999 inclusive, and values in the range 00,68 shall refer to years 2000 to 2068 inclusive. The current year is the default if yy is omitted. Note: It is expected that in a future version of ieee std 1003.1-2001 the default century inferred from a 2-digit year will change. (This would apply to all commands accepting a 2-digit year as input.) The following environment variables shall affect the execution of date : lang provide a default value for the internationalization variables that are unset or null. (see the base definitions volume of ieee std 1003.1-2001, section.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) LC_all if set to a non-empty string value, override the values of all the other internationalization variables. LC_ctype determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments).
Born This, way, ball - wikipedia
Oi hour (12-hour clock) using the locale's alternative numeric symbols. Om Month using the locale's alternative numeric symbols. Om minutes using the locale's alternative numeric symbols. Os seconds using the locale's alternative numeric symbols. Ou weekday as a number in the locale's alternative representation (Monday 1). Ou week number of the year (Sunday as the first day of the week) using the locale's alternative numeric symbols.
Ov week number of the year (Monday as the first day of the week, rules corresponding to v using the locale's alternative numeric symbols. Ow weekday as a number in the locale's alternative representation (Sunday 0). Ow week number of the year (Monday as the first day of the week) using the locale's alternative numeric symbols. Oy year (offset from C ) in alternative representation. Mmddhhmm paper cc yy attempt to set the system date and time from the value given in the operand. This is only possible if the user has appropriate privileges and the system permits the setting of the system date and time.
Z timezone name, or no characters if no timezone is determinable. a percent sign character. See the base definitions volume of ieee std 1003.1-2001, section.3.5, lc_time for the conversion specifier values in the posix locale. Modified Conversion Specifications Some conversion specifiers can be modified by the e and O modifier characters to indicate a different format or specification as specified in the lc_time locale description (see the base definitions volume of ieee std 1003.1-2001, section.3.5, lc_time). If the corresponding keyword (see era, era_year, era_d_fmt, and alt_digits in the base definitions volume of ieee std 1003.1-2001, section.3.5, lc_time) is not specified or not supported for the current locale, the unmodified conversion specifier value shall be used.
Ec Locale's alternative appropriate date and time representation. Ec the name of the base year (period) in the locale's alternative representation. Ex Locale's alternative date representation. Ex locale's alternative time representation. Ey offset from ec (year only) in the locale's alternative representation. Ey full alternative year representation. Od day of month using the locale's alternative numeric symbols. Oe day of month using the locale's alternative numeric symbols. Oh hour (24-hour clock) using the locale's alternative numeric symbols.
Japanese language - wikipedia
V week of the year (Monday as the first day of the week) as a decimal number 01,53. If the week containing January 1 has four or more days in the new year, then it shall be considered week 1; otherwise, it shall be the last week of the previous year, and the next week shall be week. W best weekday as a decimal number 0,6 (0Sunday). W week of the year (Monday as the first day of the week) as a decimal number 00,53. All days in a new year preceding the first Monday shall be considered to be in week. X Locale's appropriate date representation. X locale's appropriate time representation. Y year within century 00,99. Y year with century as a decimal number.
M minute as a decimal number 00,59. P Locale's equivalent of either am. R 12-hour clock time 01,12 using the homework am/PM notation; in the posix locale, this shall be equivalent to i : M :. S seconds as a decimal number 00,60. T 24-hour clock time 00,23 in the format hh : mm :. U weekday as a decimal number 1,7 (1Monday). U week of the year (Sunday as the first day of the week) as a decimal number 00,53. All days in a new year preceding the first Sunday shall be considered to be in week.
month as a decimal number 1,31 in a two-digit field with leading space character fill. H A synonym for. H hour (24-hour clock) as a decimal number 00,23. I hour (12-hour clock) as a decimal number 01,12. J day of the year as a decimal number 001,366. M Month as a decimal number 01,12.
All other characters shall be copied to the output without change. The output shall always be terminated with a newline. Conversion Specifications a locale's abbreviated weekday name. A locale's full weekday name. B Locale's abbreviated month name. B locale's full month name. C Locale's appropriate date and time representation.
How to write dates correctly
Date - write the date and time date -u format date -u mmddhhmm cc yy, the date utility shall write the date and time to standard output or attempt to set the system date and time. By default, the current review date and time shall be written. If an operand beginning with is specified, the output format of date shall be controlled by the conversion specifications and other text in the operand. The date utility shall conform to the base definitions volume of ieee std 1003.1-2001, section.2, Utility syntax guidelines. The following option shall be supported: -u, perform operations as if the, tZ environment variable was set to the string "UTC0", or its equivalent historical value of "GMT0". Otherwise, date shall use the timezone indicated by the. Tz environment variable or the system default if that variable is unset or null. The following operands shall be supported: format When the format is specified, each conversion specifier shall be replaced in the standard output by its corresponding value.