• 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: Converting Date-Time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Date-Time


  • Subject: Re: Converting Date-Time
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 6 Apr 2006 09:41:37 -0500

I've decided to avoid any conversion of date-times lacking a UT-shift. For those date-times that have a shift, I'm using

    (shift div 100) * hours + (shift mod 100) * minutes
    theDate - the result + (time to GMT)

which gives incorrect results, but is off by only + or - one hour. It does sort mail in the correct order which is what I really need.

I read some documents explaining the political nature of time zones that convinced me to drop the idea. Any code that correctly converts UT to Local can be invalidated at the whim of a legislature.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Converting Date-Time
      • From: Matt Deatherage <email@hidden>
  • Prev by Date: Re: Droplet
  • Next by Date: Re: Shell script to extract time
  • Previous by thread: Re: Converting Date-Time
  • Next by thread: Re: Converting Date-Time
  • Index(es):
    • Date
    • Thread