Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Additional Info on Time perspective for eg on "dc:created"

What format does time in dc:created is?
What does z in the end refer to?
What it takes to convert it to some other format in perl for example:
May 1, 2014, 2:53 AM


0 votes

Comments

Hi Shalini


Can you provide more details here? 

What product you are referring to? Where in the product is this? 

With reference to:
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Adding_a_Comment_to_a_Work_Item
I want to read the value :

c:created":"2009-06-12T13:11:29.331Z",
and display it in format say :
May 1, 2014, 2:53 AM in perl.
Above mentioned questions are asked in this context



2 answers

Permanent link
With reference to:
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Adding_a_Comment_to_a_Work_Item
I want to read the value :
c:created":"2009-06-12T13:11:29.331Z",
and display it in format say :
May 1, 2014, 2:53 AM in perl.
Above mentioned questions are asked in this context

0 votes


Permanent link
Hi Shalini,

The format is ISO 8601.
See : http://en.wikipedia.org/wiki/ISO_8601
So:
YYYY-MM-DD "T" hh:mm:ss.ms "Z"
Where T is the separator between date and time
and "Z" is Zulu time zone, or Zero hour offset or UTC.

To convert inPerl to other formats see the Perl module:

DateTime::Format::ISO8601
http://search.cpan.org/~jhoblitt/DateTime-Format-ISO8601-0.08/lib/DateTime/Format/ISO8601.pod

Enjoy,
Simon

0 votes

Comments

Thanks Simon

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: May 05 '14, 6:39 a.m.

Question was seen: 4,286 times

Last updated: May 07 '14, 7:39 a.m.

Confirmation Cancel Confirm