Input | 2017-01-28 03:48:03 +0000 |
---|---|
Output | 3:48 AM - 28 Jan 2017 |
Suggested pattern | %-l:%M %p - %-d %b %Y |
Operator | Example/Output | Notes |
---|---|---|
%l | ( 1..12) | Hour of day, 12-hour clock, blank-padded |
%M | (00..59) | Minute of the hour |
%p | AM, PM | Meridian indicator, uppercase |
%d | (01..31) | Day of month, zero-padded |
%b | Jan | Abbreviated month name, same as %h |
%Y | 2010, -0011, 14292 | Year with century, can be negative |
- | %-d, %-l | Don't pad numerical output |