# New Ticket Created by  Sylvain Colinet 
# Please include the string:  [perl #126948]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126948 >


I work with a webservice (Discord) that provide timestamp in the ISO 8601 
format.
The issue is that DateTime can't create an object from a timestamp string 
because it does not follow the ISO totally.

skarsnik@piko:~/perl6-discord$ perl6 -e 
'DateTime.new("2015-12-11T20:41:10.562000+00:00")'
Invalid DateTime string '2015-12-11T20:41:10.562000+00:00'; use an ISO 8601 
timestamp (yyyy-mm-ddThh:mm:ssZ or yyyy-mm-ddThh:mm:ss+01:00) instead
  in block <unit> at -e:1

skarsnik@piko:~/perl6-discord$ 

According to https://en.wikipedia.org/wiki/ISO_8601#Times (the last paragraph) 
it allows extra precision on the lowest order time element. (the 10.56200 part 
for this example)

Reply via email to