• 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/Snow Leopard changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date/Snow Leopard changed


  • Subject: Re: date/Snow Leopard changed
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 9 Sep 2009 14:54:45 +0200



Le 9 sept. 2009 à 12:51:13, Emmanuel LEVY a écrit :


On Sep 8, 2009, at 7:58 PM, Deivy Petrescu wrote:


(current date) as «class isot»  as string    (chevrons in both cases)

---> "2009-09-08T13:57:10"

So you know how to get the year, month and day.

The problem is, as far as I know, you can not write a isodate!


... except if you can install Satimage.osax, which has strftime and strptime to handle dates thoroughly.

strftime (current date) into "%FT%T"
--> "2009-09-09T12:46:57"

strptime "2009-09-09T12:46:57" encoding "%FT%T"
--> date "Wednesday, September 9, 2009 12:46:57 PM"

strptime "2009-09-09T12:46:57" encoding "%FT%T" with GMT
--> date "Wednesday, September 9, 2009 10:46:57 AM" -- I'm GMT+2

The documentation for the formats is in man strftime.



Hello Emmanuel

the thread is linked to Snow Leopard.
Did you updated Satimage for 10.6 since my late question about this feature ?

Yvan KOENIG (VALLAURIS, France) mercredi 9 septembre 2009 14:53:44



 _______________________________________________
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

References: 
 >Re: date/Snow Leopard changed (From: "Nigel Garvey" <email@hidden>)
 >Re: date/Snow Leopard changed (From: "Mark J. Reed" <email@hidden>)
 >Re: date/Snow Leopard changed (From: Deivy Marck Petrescu <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: Deivy Marck Petrescu <email@hidden>)
 >Re: date/Snow Leopard changed (From: Yvan KOENIG <email@hidden>)
 >Re: date/Snow Leopard changed (From: Deivy Petrescu <email@hidden>)
 >Re: date/Snow Leopard changed (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Sort Column
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: date/Snow Leopard changed
  • Next by thread: Re: date/Snow Leopard changed
  • Index(es):
    • Date
    • Thread