• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Conversion of ISO Date String to AppleScript Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conversion of ISO Date String to AppleScript Date


  • Subject: Re: Conversion of ISO Date String to AppleScript Date
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 06 Mar 2017 10:38:37 +0100

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



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Conversion of ISO Date String to AppleScript Date
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Conversion of ISO Date String to AppleScript Date (From: has <email@hidden>)
 >Re: Conversion of ISO Date String to AppleScript Date (From: "Stockly, Ed" <email@hidden>)
 >Re: Conversion of ISO Date String to AppleScript Date (From: has <email@hidden>)
 >Re: Conversion of ISO Date String to AppleScript Date (From: Shane Stanley <email@hidden>)
 >Re: Conversion of ISO Date String to AppleScript Date (From: Jim Underwood <email@hidden>)
 >Re: Conversion of ISO Date String to AppleScript Date (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Scripting Better Applescript support requests !
  • Next by Date: Re: Conversion of ISO Date String to AppleScript Date
  • Previous by thread: Re: Conversion of ISO Date String to AppleScript Date
  • Next by thread: Re: Conversion of ISO Date String to AppleScript Date
  • Index(es):
    • Date
    • Thread