Цитата: -agFMT
[more]
Код: Format string for strftime
----------------------------
The format string for strftime consists of zero or more directives and
ordinary characters.
A directive consists of the % character followed by a character that
determines the substitution that is to take place.
Spec!Range !Substitution !Spec!Range !Substitution
====+======+======================+====+======+==========================
%% ! !Character % ! %p ! !AM or PM
%a ! !Abbrev. weekday name ! %S !00--59!2-digit second (00--59)
%A ! !Full weekday name ! %U !00--52!2-digit week number:
%b ! !Abbrev. month name ! ! ! Sunday = 1st day of week
%B ! !Full month name ! %w ! 0--6 !Weekday: 0 = Sunday
%c ! !Date and time ! %W !00--52!2-digit week number:
%d !01--31!2-digit day of month ! ! ! Monday = 1st day of week
%H !00--23!2-digit hour ! %x ! !Date
%I !01--12!2-digit hour ! %X ! !Time
%j !001-- !3-digit day of year ! %y !00--99!2-digit year, no century
! 366! ! %Y ! !Year with century
%m !01--12!2-digit month, decimal! %Z ! !Time zone name, or no
%M !00-59 !2-digit minute ! ! ! chars if no time zone