The strftime table

SpecifierReplaced byExample
%AFull weekday nameMonday, Friday
%bFull month nameApril, May, June
%BAbbreviated month nameApr, May, Jun
%cAppropriate date and time representationDo 22 Dez 2022 20:52:34 CET
%dDay of the month (with a leading zero)01, 04, 12
%DFormats the date12/06/79
%eDay of the month (without a leading zero)3, 4, 12
%FDate in ISO 8601 format YYYY-MM-DD1979-01-30
%HHour of the day, 24-hour time01-23
%IHour of the day, 12-hour time01-11
%jDay of the year080
%kHour of the day, 24-hour time (without a leading zero)0-23
%mMonth of the year01-12
%MMinute of the hour00-59
%pAM or PM designationAM, PM
%Pam or pm designationam, pm
%r12-hour time2:32:59 AM
%R24-hour time HH:MM16:33
%TTime in ISO 8601 format HH:MM:SS16:33:59
%sAmount of seconds since 1970-01-01 00:00:00 UTC
%SSecond of the minute00-60
%UWeek number with the first Sunday as the first day of week one00-53
%VWeek number in ISO 8601 format01-53
%wDay of the week with Sunday as 00-6
%WWeek number of the current year, starting with the first Monday as the first day of the first week00-53
%xPreferred date representation03/10/22
%XPreferred time representation13:23:01
%yYear without a century (last two digits)00-99
%YYear1979, 2022
%ZTimezone name or abbreviationEEST, CDT, UTC

Links

Comments