• 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: re: Issues subtracting Unix epoch from date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: re: Issues subtracting Unix epoch from date


  • Subject: Re: re: Issues subtracting Unix epoch from date
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sun, 21 Feb 2010 21:19:51 +0000

airdrummer wrote on Sun, 21 Feb 2010 12:23:02 -0500:

>re: gmt to local time...works 4 me:
>
>property perlTime : "perl -MTime::Local -MPOSIX -e 'print
>strftime(\"%m/%d/%y
>%I:%M:%S %p\", localtime(timegm("
>on GMT2localtime(yr, mon, dy, hrs, mins, secs)
>	set mon to (mon as integer) - 1
>	set dt to perlTime & secs & "," & mins & "," & hrs & "," & dy & "," & mon
>& ","
>& yr & ")))'" as string
>	set dt to do shell script dt
>	set dt to date dt
>	return dt
>end GMT2localtime

Obviously the local time zone in this case is somewhere between Pacific/
Honolulu and US/Eastern.  :)

NG

 _______________________________________________
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: re: Issues subtracting Unix epoch from date
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Repeat Until Dialog is Acknowledged?
  • Next by Date: Re: re: Issues subtracting Unix epoch from date
  • Previous by thread: Re: Issues subtracting Unix epoch from date
  • Next by thread: Re: re: Issues subtracting Unix epoch from date
  • Index(es):
    • Date
    • Thread