Re: Mac dates ==> UNIX dates
Re: Mac dates ==> UNIX dates
- Subject: Re: Mac dates ==> UNIX dates
- From: Philip Aker <email@hidden>
- Date: Sat, 21 Oct 2006 05:00:49 -0700
On 2006-10-21, at 04:45:21, Yvan KOENIG wrote:
set d to (current date) as string
set r to (do shell script "echo 'puts [clock scan {" & d & "}]' |
tclsh")
do shell script "date -r " & r
For your information, on my french system I got this log report:
tell current application
current date
date "samedi 21 octobre 2006 13:43:26"
do shell script "echo 'puts [clock scan {samedi 21 octobre 2006
13:43:26}]' | tclsh"
""
do shell script "date -r "
"date: option requires an argument -- r
usage: date [-nu] [-r seconds] [+format]
date [[[[[cc]yy]mm]dd]hh]mm[.ss]"
Thanks for checking the localization Yvan. How does this work over in
France?
set d to ((current date) as «class isot») as string
set r to (do shell script "echo 'puts [clock scan {" & d & "}]' |
tclsh")
do shell script "date -r " & r
Philip Aker
email@hidden
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden