cl-icalendar-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cl-icalendar-devel] (no subject)


From: Mario Castelán Castro
Subject: [Cl-icalendar-devel] (no subject)
Date: Sat, 06 Mar 2010 22:34:07 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

March 6th 2010 in cl-icalendar-devel thread "type values"

I just got banned because I'm running a tor relay and I have not set
the IRC configuration yet.

The list of value types is (with it current documentation status):

Boolean - trivial
Integer - trivial           
Float - trivial           
Text - trivial             
Binary - trivial              
URI - no special parsing, leave as is.
Cal-address - is an uri, leave as is.
UTC-Offset - pending
Date - pending
Time - pending
Datetime - pending
Duration - pending
Period - pending
Recur - pending

My sugesstion for Date is to store them as a class with internal slots
timezone and day, day will be an integer conunting the days to
2000-03-01 or until, if negative.  There will be methods date-year for
year, date-month for month (1=january) and date day for day of month
(from 1 to 31).

To time I suggest 2 classes: relative-time and floating-time.

Floating time will be stored as a class with slots hour and seconds.

Absolute time is a time stored as a class with slots seconds where
seconds is the seconds offset from 00:00 UTC.

Both types will have acessors for hour, minute and second.

When parse-value have assigned a timezone designator for type time,
will return a absolute time (converting to utc), if have no timezone
assignated return a floating time.

There should be a method for convert floating times to absolute ones,
given a timezone designator, maybe (fix-time floating-time timezone)
=> absolute-time?.

What do you think?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREIAAYFAkuTLLwACgkQZ4DA0TLic4iYfQCgjyVq+ePc+RgmiKw0ZbThysfg
nzMAn1zjVi9oHQAHc2gmqCsKV2f4sSDc
=F4Q6
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]