• 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: time to gmt
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: time to gmt


  • Subject: Re: time to gmt
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 14 Mar 2007 18:10:49 -0700

On Mar 14, 2007, at 5:42 PM, tom wible wrote:

i've got dates in gmt, that i'd like to display as local time: no problem, just add:
set datetime to datetime + (time to GMT) -- tvpi is utc; set to local


works great...if the date in question is in the current dst status.

but if the date is say "01jan07 10:00amGMT" which is ("01jan07 05:00amEST") but if i convert it now, i get "01jan07 06:00amEDT"

is there a majick applescript incantation(tm;-) get the time to GMT for the specific date?

You're in an area where daylight time is in effect, so if the date you're converting is not during daylight time, you'll be an hour off. Likewise, during a period when daylight time is not in effect, and you convert a date/time that's in DST, you'll be an hour off the other way.


Those of us in Hawaii or Arizona don't have to worry about that problem. <g>

-- Michelle

--
My choice early in life was either to be a piano-player in a whorehouse or a politician. And to tell the truth, there's hardly any difference.
-- Harry S. Truman (circa 1962)


_______________________________________________
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: time to gmt
      • From: "Mark J. Reed" <email@hidden>
References: 
 >time to gmt (From: tom wible <email@hidden>)

  • Prev by Date: Microsoft: the experts in crazy-making
  • Next by Date: Re: time to gmt
  • Previous by thread: time to gmt
  • Next by thread: Re: time to gmt
  • Index(es):
    • Date
    • Thread