Python Date and Time formatting

%A Weekday as locale’s full name. Monday
%d Day of the month as a zero-padded decimal number. 30
%B Month as locale’s full name. September
%m Month as a zero-padded decimal number. 09
%Y Year with century as a decimal number. 2013
%I Hour (12-hour clock) as a zero-padded decimal number. 07
%H Hour (24-hour clock) as a zero-padded decimal number. 07
%M Minute as a zero-padded decimal number. 06
%S Second as a zero-padded decimal number. 05
%p Locale’s equivalent of either AM or PM. AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s