Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AdvancedStatusTime date format cheat sheet
- G = Era. Ex: "AD"
- y = Year. Ex: "2017"
- Q = Quarter. Ex: "02" (Half way through the year)
- QQQ = Quarter. Ex: "Q2" (Half way through the year)
- M = Month. Ex: "9"
- MMM = Month. Ex: "Sept" (Abbreviation of the month)
- MMMMM = Month. Ex: "S" (First letter of the month)
- w = Week of the year. Ex: "27" (27 is the final week of the year)
- W = Week of the month. Ex: "3" (3 is the last week of the month)
- d = Day. Ex: "5" (The day of the month)
- D = Day. Ex: "324" (The day of the year)
- E = Weekday. Ex: "Tues" (The short string of the weekday)
- EEEE = Weekday. Ex: "Tuesday" (The full string of the weekday)
- a = AM/PM. Ex: "AM" (Places AM or PM depending on the time)
- h = Hour. Ex: "1" (Hours in 12 hour format, single number)
- hh = Hour. Ex: "01" (Hours in 12 hour format, double number)
- H = Hour. Ex: "0" (Hours in 24 hour format, single number)
- HH = Hour. Ex: "00" (Hours in 24 hour format, double number)
- m = Minute. Ex: "5" (Minutes. Single number)
- mm = Minute. Ex: "05" (Minutes. Double number)
- s = Second. Ex: "4" (Second. Single number)
- ss = Second. Ex: "04" (Second. Double number)
- z = Timezone. Ex: "CDT"
- zzzz = Timezone. Ex: "Central Daylight Time"
- Example usage:
- "M/d/y (E) | h:mm:ss a z" would print "5/23/2017 (Tue) | 8:23:17 PM CDT", in relation to your time, obviously.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement