dateTime.formattedString question

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

dateTime.formattedString question

Post by joleenf »

Hi,

Why is it that with the following components:

- visadDateTime of 2014-May-21 19:33 UTC
- a time zone object set to "0",UTC
- a print statement converting to a julian year/day combination + a hh:mm print of the UTC time

the time gets converted to a 12 hour clock time, but still list the time as UTC? This is slightly confusing and I believe incorrect? Or, have I made an error in code usage?

Screen Shot 2015-09-24 at 10.19.57 AM.png
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: dateTime.formattedString question

Post by joleenf »

Agh! I got it, the formatted string output should have the hour format capitalized...


print visDateTime.formattedString('yyyyDDD_HHmm Z',tz)
Post Reply