Time offset for future dates
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