D.2. Examples

For the date time of February 3rd, 2017 at 2:34:26 PM, in the America/New_York timezone:

%b

feb

%B

february

%^B

FEBRUARY

%$B

February

%A

friday

%86400A

saturday

%-86400A

thursday

%a

fri

%u

5

%D

02-03-17

%j

034

%H:%M:%S

14:34:26

%3600H:%3600M:%3600S

15:34:26

%1800H:%1800M:%1800S

15:04:26

%-1800H:%-1800M:%-1800S

14:04:26

%m/%d/%Y - %H:%M:%S

02/03/2017 - 14:34:26

%m/%d/%Y - %I:%M:%S %p

02/03/2017 - 02:34:26 PM

%Y-%m-%dT%H:%M:%S

2017-02-03T14:34:26

%Y-%m-%dT%H:%M:%S%:z

2017-02-03T14:34:26-05:00