[Remind-Fans] time zones
Avery Ke
avery at u.washington.edu
Wed Jan 7 12:19:07 EST 2004
Ted Rolle wrote:
>
> All I can say is, "Elegant"
>> Indeed... let's say you have something happening at 11:00am EST.
>> REM [trigger('2004-01-06', 16:00, 1)] MSG Meeting at 4:00pm UTC.
Indeed! This is why I love Remind so much. Is there
*anything* David didn't think of when he wrote Remind?
<grin>
I don't want absentmindedly mess up an appointment while
mentally converting from 12hr to 24hr time to UTC, so I made
myself a cheat sheet. It's pasted below--along with examples
for one time and recurring appointments and the reminder
script I used to create the conversion tables--in case
anyone else should find this useful.
Avery
# -----------------------begin RemindTimeZone
# RemindTimeZone: reminder examples and UTC conversion tables
# Created on 7 Jan 2003 by Avery Ke <avery at u.washington.edu>
# Purpose: convert UTC times to EST or PST
#
# WARNING: Check tables for accuracy before relying on them!
#
# Usage:
#
# To test for accuracy with examples below:
#
# Make sure your computer is in appropriate timezone
# At shell prompt, type
# $ date +%Z
#
# Then type
# $ rem -q -F RemindTimeZone 31 Dec 2003
# $ rem -q -c+2 -F RemindTimeZone 31 Dec 2003
#
# Examples
# Apt. on Dec. 31, 2003 at 11 am EST
REM [trigger('2003-12-31',16:00,1)] MSG Appointment %2 (16:00 UTC)
# Party on Dec. 31, 2003 at 11 pm EST
REM [trigger('2004-01-01',04:00,1)] MSG East Coast Party %2 (04:00 UTC)
# Apt. on Dec. 31, 2003 at 11 am PST
REM [trigger('2003-12-31',19:00,1)] MSG Appointment %2 (19:00 UTC)
# Party on Dec. 31, 2003 at 11 pm EST
REM [trigger('2004-01-01',07:00,1)] MSG West Coast Party %2 (07:00 UTC)
# Weekly meeting at 9:30 am EST, starting Jan 7, 2004
REM *7 [trigger('2004-01-07',14:30,1)] MSG Weekly Mtg. %2 (19:00 UTC)
# Four day workshop, starting at 1 pm PST from Jan 6 - Jan 9, 2004
REM *1 [trigger('2004-01-06',21:00,1)] UNTIL 9 Jan 2004 MSG 4 day workshop %2 (19:00 UTC)
# Weekly appointment at 9:30 am EST, starting Jan 7, 2004
# Conversion Table: Eastern Standard Time to UTC
# +================|=========|=======+====================+
# | 12 hour | 24 hour | UTC | trigger date |
# +================|=========|=======+====================+
# | 1:00am | 01:00 | 6:00 | EST calendar date |
# | 2:00am | 02:00 | 7:00 | EST calendar date |
# | 3:00am | 03:00 | 8:00 | EST calendar date |
# | 4:00am | 04:00 | 9:00 | EST calendar date |
# +----------------|---------|-------+--------------------+
# | 5:00am | 05:00 | 10:00 | EST calendar date |
# | 6:00am | 06:00 | 11:00 | EST calendar date |
# | 7:00am | 07:00 | 12:00 | EST calendar date |
# | 8:00am | 08:00 | 13:00 | EST calendar date |
# +----------------|---------|-------+--------------------+
# | 9:00am | 09:00 | 14:00 | EST calendar date |
# | 10:00am | 10:00 | 15:00 | EST calendar date |
# | 11:00am | 11:00 | 16:00 | EST calendar date |
# | 12:00 noon | 12:00 | 17:00 | EST calendar date |
# +================|=========|=======+====================+
# | 1:00pm | 13:00 | 18:00 | EST calendar date |
# | 2:00pm | 14:00 | 19:00 | EST calendar date |
# | 3:00pm | 15:00 | 20:00 | EST calendar date |
# | 4:00pm | 16:00 | 21:00 | EST calendar date |
# +----------------|---------|-------+--------------------+
# | 5:00pm | 17:00 | 22:00 | EST calendar date |
# | 6:00pm | 18:00 | 23:00 | EST calendar date |
# | 7:00pm | 19:00 | 24:00 | next calendar date |
# | 8:00pm | 20:00 | 1:00 | next calendar date |
# +----------------|---------|-------+--------------------+
# | 9:00pm | 21:00 | 2:00 | next calendar date |
# | 10:00pm | 22:00 | 3:00 | next calendar date |
# | 11:00pm | 23:00 | 4:00 | next calendar date |
# | 12:00 midnight | 00:00 | 5:00 | next calendar date |
# +================|=========|=======+====================+
# Conversion Table: Pacific Std Time to UTC
# +================|=========|=======+====================+
# | 12 hour | 24 hour | UTC | trigger date |
# +================|=========|=======+====================+
# | 1:00am | 01:00 | 9:00 | PST calendar date |
# | 2:00am | 02:00 | 10:00 | PST calendar date |
# | 3:00am | 03:00 | 11:00 | PST calendar date |
# | 4:00am | 04:00 | 12:00 | PST calendar date |
# +----------------|---------|-------+--------------------+
# | 5:00am | 05:00 | 13:00 | PST calendar date |
# | 6:00am | 06:00 | 14:00 | PST calendar date |
# | 7:00am | 07:00 | 15:00 | PST calendar date |
# | 8:00am | 08:00 | 16:00 | PST calendar date |
# +----------------|---------|-------+--------------------+
# | 9:00am | 09:00 | 17:00 | PST calendar date |
# | 10:00am | 10:00 | 18:00 | PST calendar date |
# | 11:00am | 11:00 | 19:00 | PST calendar date |
# | 12:00 noon | 12:00 | 20:00 | PST calendar date |
# +================|=========|=======+====================+
# | 1:00pm | 13:00 | 21:00 | PST calendar date |
# | 2:00pm | 14:00 | 22:00 | PST calendar date |
# | 3:00pm | 15:00 | 23:00 | PST calendar date |
# | 4:00pm | 16:00 | 24:00 | PST calendar date |
# +----------------|---------|-------+--------------------+
# | 5:00pm | 17:00 | 1:00 | next calendar date |
# | 6:00pm | 18:00 | 2:00 | next calendar date |
# | 7:00pm | 19:00 | 3:00 | next calendar date |
# | 8:00pm | 20:00 | 4:00 | next calendar date |
# +----------------|---------|-------+--------------------+
# | 9:00pm | 21:00 | 5:00 | next calendar date |
# | 10:00pm | 22:00 | 6:00 | next calendar date |
# | 11:00pm | 23:00 | 7:00 | next calendar date |
# | 12:00 midnight | 00:00 | 8:00 | next calendar date|
# +================|=========|=======+====================+
# -----------------------------------------------end RemindTimeZone
# -----------------------------------------------begin convert2UTC
# convert2UTC
# Avery Ke <avery at u.washington.edu>
# Created 7 Jan 2003
#
# Purpose: uses `remind' to create a conversion table
# from local time (12hr and 24hr) to UTC
#
# Usage:
#
# Edit text below to change <timezone> below to desired timezone (e.g. EST)
#
# Then, make sure computer is in appropriate timezone
# At shell prompt, type
# $ date +%Z
#
# Then type
# $ rem -q -F convert2UTC > RemindTimeZone.txt
#
# If necessary, rearrange lines below
# so that first line of output represents 1am in your timezone
REM [trigger('2004-01-07',8:00,1)] MSG Apt. %2 = %3 <timezone> = 8:00 UTC %h
REM [trigger('2004-01-07',9:00,1)] MSG Apt. %2 = %3 <timezone> = 9:00 UTC %h
REM [trigger('2004-01-07',10:00,1)] MSG Apt. %2 = %3 <timezone> = 10:00 UTC %h
REM [trigger('2004-01-07',11:00,1)] MSG Apt. %2 = %3 <timezone> = 11:00 UTC %h
REM [trigger('2004-01-07',12:00,1)] MSG Apt. %2 = %3 <timezone> = 12:00 UTC %h
REM [trigger('2004-01-07',13:00,1)] MSG Apt. %2 = %3 <timezone> = 13:00 UTC %h
REM [trigger('2004-01-07',14:00,1)] MSG Apt. %2 = %3 <timezone> = 14:00 UTC %h
REM [trigger('2004-01-07',15:00,1)] MSG Apt. %2 = %3 <timezone> = 15:00 UTC %h
REM [trigger('2004-01-07',16:00,1)] MSG Apt. %2 = %3 <timezone> = 16:00 UTC %h
REM [trigger('2004-01-07',17:00,1)] MSG Apt. %2 = %3 <timezone> = 17:00 UTC %h
REM [trigger('2004-01-07',18:00,1)] MSG Apt. %2 = %3 <timezone> = 18:00 UTC %h
REM [trigger('2004-01-07',19:00,1)] MSG Apt. %2 = %3 <timezone> = 19:00 UTC %h
REM [trigger('2004-01-07',20:00,1)] MSG Apt. %2 = %3 <timezone> = 20:00 UTC %h
REM [trigger('2004-01-07',21:00,1)] MSG Apt. %2 = %3 <timezone> = 21:00 UTC %h
REM [trigger('2004-01-07',22:00,1)] MSG Apt. %2 = %3 <timezone> = 22:00 UTC %h
REM [trigger('2004-01-07',23:00,1)] MSG Apt. %2 = %3 <timezone> = 23:00 UTC %h
REM [trigger('2004-01-08',0:00,1)] MSG Apt. %2 = %3 <timezone> = 24:00 UTC %h
REM [trigger('2004-01-08',1:00,1)] MSG Apt. %2 = %3 <timezone> = 1:00 UTC %h
REM [trigger('2004-01-08',2:00,1)] MSG Apt. %2 = %3 <timezone> = 2:00 UTC %h
REM [trigger('2004-01-08',3:00,1)] MSG Apt. %2 = %3 <timezone> = 3:00 UTC %h
REM [trigger('2004-01-08',4:00,1)] MSG Apt. %2 = %3 <timezone> = 4:00 UTC %h
REM [trigger('2004-01-08',5:00,1)] MSG Apt. %2 = %3 <timezone> = 5:00 UTC %h
REM [trigger('2004-01-08',6:00,1)] MSG Apt. %2 = %3 <timezone> = 6:00 UTC %h
REM [trigger('2004-01-08',7:00,1)] MSG Apt. %2 = %3 <timezone> = 7:00 UTC %h
# -----------------------------------end convert2UTC
More information about the Remind-fans
mailing list