From: Jamey Cribbs Date: 2005-05-24T21:58:12+09:00 Subject: Re: [ANN] KirbyBase 2.2 Christian Neukirchen wrote: >Jamey Cribbs writes: > > > >>gabriele renzi wrote: >> >> >> >>>why don't use a Time object? >>> >>> >>> >>I chose to have Date/DateTime be field types in KirbyBase, rather than >>Time, because Time can only store dates back to 1970. >> >> > >ruby 1.8.2 (2004-12-25) [powerpc-darwin7.7.0] > >irb(main):006:0> Time.at -1600000000 >=> Sun Apr 20 12:33:20 CET 1919 > > When I tried this on my WindowsXP machine I got the following error: irb(main):001:0> Time.at -1600000000 ArgumentError: time must be positive from (irb):1:in `at' from (irb):1 irb(main):002:0> So, it does not let you use negative Times on XP. That's why I had to use Date/DateTime. Jamey Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.