Created
November 16, 2018 22:04
-
-
Save kadru/18f0fc515020e21d4392d84430087f6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Date Formatting I | |
'%Y' #Year with century (e.g. 2015, 1995, etc) | |
'%m' #Month of the year, zero-padded (01..12) | |
'%B' #The full month name (e.g. January) | |
'%b' #The abbreviated month name (e.g. Jan) | |
'%d' #Day of the month, zero-padded (01..31) | |
'%j' #Day of the year (001..366) | |
#Flags I | |
'-' #Don't pad a numerical output | |
'_' #Use spaced for padding | |
'0' #Use zeros for padding | |
'^' #Upcase the result string | |
'#' #Change case | |
':' #Use colons for %z | |
#Date Formatting II | |
'%C' #Year / 100 (round down. e.g. 20 in 2015) | |
'%y' #Year % 100 (00...99) | |
'%_m' #Month of the year, blank-padded (_1..12) | |
'%-m' #Month of the year, no-padding (1..12) | |
'%^B' #The full month name uppercased (e.g. JANUARY) | |
'%^b' #The abbreviated month name uppercased (e.g. JAN) | |
'%h' #Equivalent to %b (abbreviated month name) | |
'%-d' #Day of the month, no-padding (1..31) | |
'%e' #Day of the month, blank-padded (_1..31) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment