• 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
Time offset for future dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Time offset for future dates


  • Subject: Time offset for future dates
  • From: Jörgen Stahle <email@hidden>
  • Date: Mon, 18 Dec 2017 14:06:47 +0100

Hi, guys!

I need to be able to make a correct datetime string like
"2017-12-18T09:59:35+01:00” for FUTURE dates. My problem is to take
daylight savings shift into account when calculating time offset for a
given time zone (CET in my case) for dates in the future.

You cannot use the AppleScript command ’time to GMT’ relatively to another
datetime than the current, and I haven’t found any shell script command
that can do that.

Of course I can make a function that give me the dates for the shiftings
(last Sunday in march and October) and conditionally relate the time offset
to the two periods. But is there an easier and more future proof way to do
it?

I think there might be ways to do this using Objective-C – or is there not?
Anyway my skills knowledge in Objective-C (and Swift) is close to zero.

Anyone that have a solution for me?

Best regards

Jörgen
 _______________________________________________
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 offset for future dates
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Re: [applescript] Working with XML...
  • Next by Date: Re: Time offset for future dates
  • Previous by thread: Re: [applescript] Working with XML...
  • Next by thread: Re: Time offset for future dates
  • Index(es):
    • Date
    • Thread