From merciful@wxs.nl
Received: by maskin (mbox dlanor)
 (with Cubic Circle's cucipop (v1.31 1998/05/13) Thu Oct 14 10:54:23 1999)
X-From_: merciful@wxs.nl  Thu Oct 14 02:42:48 1999
Return-Path: <merciful@wxs.nl>
Delivered-To: dlanor@ettnet.se
Received: from smtp02.wxs.nl (smtp02.wxs.nl [195.121.6.60])
	by mail.ettnet.se (Postfix) with ESMTP id 2FE0E3905B
	for <dlanor@ettnet.se>; Thu, 14 Oct 1999 02:42:48 +0200 (MET DST)
Received: from falcon.merciful.nl ([195.121.184.137]) by smtp02.wxs.nl
          (Netscape Messaging Server 3.61)  with SMTP id AAA5A40
          for <dlanor@ettnet.se>; Thu, 14 Oct 1999 02:47:21 +0200
Date: Thu, 14 Oct 1999 02:47:20 +0200 (MET DST)
From: Eabe Kuik <merciful@wxs.nl>
Reply-To: Eabe Kuik <merciful@wxs.nl>
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
X-Mailer: Infitra 0.13b
Organization: Merciful
To: Ronald Anderson <dlanor@ettnet.se>
Subject: Timezone, A small start
Message-ID: <7727DDD81270.AAA5A40@smtp02.wxs.nl>

Hi Ronald,

A while ago there was a 'hot' discussion in the STiK beta testers group 
about the timezone variable in the STinG configuration file. Well before I 
want to reopen this discussion I thought I check with you there I think you 
may already have some work done on this subject. Is this the case?

Beside that I have done some work on this subject and came up with the 
following. It is not ready yet! It should be more clearly described than it 
is now, but I think you will understand what I mean.

New timezone definition:

TIMEZONE = [<std_offset>][<dst_offset><start><end>]

Default setting is GMT without daylight saving time. This is the case when 1. 
no 'TIMEZONE' can be found. 2. 'TIMEZONE' is found but no elements are found.

 
1. <std_offset> and <dst_offset>
The offset element may have two subelements. <string> and <offsettime>. The 
string element is the name of the timezone e.g. "MET". The string element is 
not required. In <dst_offset> <string> is not the name of the timezone but a 
string that is added to the timezone name indicating that local time is 
summer time. E.g; "MET DST"

The <offsettime> element is the time added to "GMT" to get the local time. 
The <offsettime> element can have a preceding "+" or "-" indicating a 
positive or negative offset.

2. The <start> element.
Two elements are possible, only one is required. The elements in the <start> 
element are both from the type <timemark>. The second <timemark> element can 
be used to 'finetune' the <start>. For example; A start could be set to:"The 
wednesday in the second week after 21 March." A <timemark> element will then 
look like this: m:3,d:21+w:2,d:4,02:00

Explaned:
	m:3	month 3	-> March
	d:21	day 21	-> 21 March
	+	added next
	w:2	go to the second week starting from the sunday in current 
		week
	d:4	the wednesday in this week
		starting at 02:00

If 21 March is a sunday the wednesday will be 31 March. And if 21 March is a 
monday the wednesday will be 30 March. etc...

Note that only one of the two <timemark> elements has the time!


Element formats:

<n>		=	decimal number
<char>		=	us-ascii char
<string>		=	collection of one or more us-ascii chars

<time>		=	hh:mm[:ss]
<offsettime>	=	[+/-]hh:mm[:ss]
<date>		=	dd:mm
<day>		=	d;<n>	1 = sunday
<week>		=	w;<n>	1 = first week
<month>		=	m;<n>
<timemark>	=	<date>[,<time>]
		=	<day>[,<time>]
		=	<month>,<day>[,<time>]
		=	<week>,<day>[,<time>]
		=	<month>,<week>,<day>[,<time>]
<start>		=	<timemark>[+/-[<timemark>]]
<end>		=	<timemark>[+/-[<timemark>]]

<std_offset>	=	[<string>,]<offsettime>
<dst_offset>	=	[<string>,]<offsettime>

End of New timezone definition.

So what do you think of it. (Shooting season is open :)


Cheers,
Eabe

---------------------------------------------------------------------
          Innocence is hurting, a world speaks out of tune
          Promise calls, promise falls, what are we to do?
             With a clouded view, you follow me through
---------------------------------------------------------------------
mail:    merciful@wxs.nl
home:    home.wxs.nl/~merciful/index.htm
Infitra: http://home.wxs.nl/~merciful/infitra/index.htm
---------------------------------------------------------------------



