About ruby on rails, hackintosh, iphone3g and etc.

Tuesday, April 28, 2009

Date Format in strftime

FormatMeaning
%aThe abbreviated weekday name (“Sun'’)
%AThe full weekday name (“Sunday'’)
%bThe abbreviated month name (“Jan'’)
%BThe full month name (“January'’)
%cThe preferred local date and time representation
%dDay of the month (01..31)
%HHour of the day, 24-hour clock (00..23)
%IHour of the day, 12-hour clock (01..12)
%jDay of the year (001..366)
%mMonth of the year (01..12)
%MMinute of the hour (00..59)
%pMeridian indicator (“AM'’ or “PM'’)
%SSecond of the minute (00..60)
%UWeek number of the current year, starting with the first Sunday as the first day of the first week (00..53)
%WWeek number of the current year, starting with the first Monday as the first day of the first week (00..53)
%wDay of the week (Sunday is 0, 0..6)
%xPreferred representation for the date alone, no time
%XPreferred representation for the time alone, no date
%yYear without a century (00..99)
%YYear with century
%ZTime zone name
%%Literal “%'’ character

No comments: