xml - Generate Timestamp in Ruby -
i getting timestamp value in xml request following format.
2014-06-27t12:41:13.0000617z
i need form xml response kind of time format in ruby. how format corresponding time?
i wanted know name of format.
try this:
t = time.utc(2010,3,30, 5,43,"25.123456789".to_r) t.iso8601(10)
this produces:
"2010-03-30t05:43:25.1234567890z"
Comments
Post a Comment