Thanks a lot Shane.
Honestly I was a bit skeptical when I tested with an awful date string like : "2016_01_05KC13:01:15Z" I was partially wrong. I got : vendredi 1 janvier 2016 à 00:00:00 It appears that the date component is correctly extracted but that the time part is dropped. It seems clear that if we want to get the time value, the separator between date components MUST be the dash AND that the separator between date and time MUST be space or T. Using slash in the date component issue an error. Using space in the date component give a curious result : it doesn't take care of the time embedded in the string BUT it takes care of the UTC setting which means that here, "2016 01 05 13:01:15Z" is deciphered as vendredi 1 janvier 2016 à 01:00:00 same result with : "2016 01 05KC13:01:15Z" is deciphered as vendredi 1 janvier 2016 à 01:00:00 For those which don't understand French (not a crime), I used KC becausehere it reads "cassé" which means "broken".
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) lundi 6 mars 2017 10:38:33
|