• 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: date syntax not working on 10.10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date syntax not working on 10.10.5?


  • Subject: Re: date syntax not working on 10.10.5?
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 20 Aug 2015 21:14:13 +0200


Le 20/08/2015 à 20:23, Stockly, Ed <email@hidden> a écrit :

How may we ask Apple to use an universal format?

ISO date string (current date)

ISO date ("2015-09-04 10:11")

And allow flexibility: 

ISO date ("2015-09-04")
ISO date ("10:11")
ISO date ("2015/09/04 10:11")
ISO date ("15-09-04 10:11")
ISO date ("2015,09,04 10:11")


Or it could be UNIX date
Or universal date


We don't need to ask to Apple.
We may set our system to use ISO 8601. As far as I remember, it would accept most of your proposals.

set maybe to "2015/5/6"
log "01, " & date maybe
log short date string of (date maybe)
set maybe to "2015-5-6"
log "02, " & date maybe
log short date string of (date maybe)
try
set maybe to "2015/5"
log "03, " & date maybe
log short date string of (date maybe)
end try
set maybe to "2015 5/6"
log "04, " & date maybe
log short date string of (date maybe)
set maybe to "15-5-6"
log "05, " & date maybe -- bad maybe
log short date string of (date maybe)
set maybe to "15/5/6"
log "05, " & date maybe -- bad maybe
log short date string of (date maybe)
set maybe to "2015/5/6 10:11"
log "06, " & date maybe
log short date string of (date maybe)
set maybe to "2015-5-6 11:12:13"
log "07, " & date maybe
log short date string of (date maybe)
set maybe to "11:12:13"
log "08, " & date maybe
log short date string of (date maybe)


Here with yyyy/mm/dd hh:mm:ss as default for the two first formats which we may define in pref System it return :
(*01, mercredi 6 mai 2015 00:00:00*)
(*2015/05/06*)
(*02, mercredi 6 mai 2015 00:00:00*)
(*2015/05/06*)
(*04, mercredi 6 mai 2015 00:00:00*)
(*2015/05/06*)
(*05, lundi 15 mai 6 00:00:00*)
(*6/05/15*)
(*05, lundi 15 mai 6 00:00:00*)
(*6/05/15*)
(*06, mercredi 6 mai 2015 10:11:00*)
(*2015/05/06*)
(*07, mercredi 6 mai 2015 11:12:13*)
(*2015/05/06*)
(*08, jeudi 20 août 2015 11:12:13*)
(*2015/08/20*)


Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) jeudi 20 août 2015 21:13:59



 _______________________________________________
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: date syntax not working on 10.10.5?
      • From: Shane Stanley <email@hidden>
References: 
 >date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Christopher Stone <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Yvan KOENIG <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Michael Grant <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Shane Stanley <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Yvan KOENIG <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: Yvan KOENIG <email@hidden>)
 >Re: date syntax not working on 10.10.5? (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: date syntax not working on 10.10.5?
  • Next by Date: Re: date syntax not working on 10.10.5?
  • Previous by thread: Re: date syntax not working on 10.10.5?
  • Next by thread: Re: date syntax not working on 10.10.5?
  • Index(es):
    • Date
    • Thread