Digital Marketing

Linux Date format

Linux Date format is a sequence of characters which specifies how output will appear. 

It comprises some combination of the following sequences:
%%A literal percent sign ("%").
%aThe abbreviated weekday name (e.g., Sun).
%AThe full weekday name (e.g., Sunday).
%bThe abbreviated month name (e.g., Jan).
%BLocale's full month name (e.g., January).
%cThe date and time (e.g., Thu Mar 3 23:05:25 2005).
%CThe current century; like %Y, except omit last two digits (e.g., 20).
%dDay of month (e.g., 01).
%DDate; same as %m/%d/%y.
%eDay of month, space padded; same as %_d.
%FFull date; same as %Y-%m-%d.
%gLast two digits of year of ISO week number (see %G).
%GYear of ISO week number (see %V); normally useful only with %V.
%hSame as %b.
%HHour (00..23).
%IHour (01..12).
%jDay of year (001..366).
%kHour, space padded ( 0..23); same as %_H.
%lHour, space padded ( 1..12); same as %_I.
%mMonth (01..12).
%MMinute (00..59).
%nA newline.
%NNanoseconds (000000000..999999999).
%pLocale's equivalent of either AM or PM; blank if not known.
%PLike %p, but lowercase.
%rLocale's 12-hour clock time (e.g., 11:11:04 PM).
%R24-hour hour and minute; same as %H:%M.
%sSeconds since 1970-01-01 00:00:00 UTC.
%SSecond (00..60).
%tA tab.
%TTime; same as %H:%M:%S.
%uDay of week (1..7); 1 is Monday.
%UWeek number of year, with Sunday as first day of week (00..53).
%VISO week number, with Monday as first day of week (01..53).
%wDay of week (0..6); 0 is Sunday.
%WWeek number of year, with Monday as first day of week (00..53).
%xLocale's date representation (e.g., 12/31/99).
%XLocale's time representation (e.g., 23:13:48).
%yLast two digits of year (00..99).
%z+hhmm numeric time zone (e.g., -0400).
%:z+hh:mm numeric time zone (e.g., -04:00).
%::z+hh:mm:ss numeric time zone (e.g., -04:00:00).
%:::zNumeric time zone with ":" to necessary precision (e.g., -04+05:30).
%ZAlphabetic time zone abbreviation (e.g., EDT).


Popular posts from this blog