scsh-users
[Top] [All Lists]

date/time calculations

To: scsh-news@zurich.ai.mit.edu
Subject: date/time calculations
From: Thomas Wager <twager@ti.com>
Date: Mon, 25 Feb 2002 17:05:36 +0100
Organization: Texas Instruments Deutschland GmbH
Hi all,

I'm quite new to scsh and tried some date calculations. The following
error seems a little bit strange to me, from what I read in the manual
this should work:

Make a date object from the current date (works):
> (make-date  0 3 16 25 2 2002)
'#{%date}

Call (time) with the current date (works, too):
> (time (date))
1014651710

Call (time) with the date created above (fails ??):
> (time (make-date  0 3 16 25 2 2002)))

Error: 79
       "Value too large for defined data type"
       #{Procedure 11277 (%date->time in scsh-level-0)}
       0
       3
       16
       25
       2
1> 

I have no idea why this happens... BTW, it's version 0.6.1 on Solaris 8.
Hopefully someone can point me to what I am doing wrong here.
Thanks!

Thomas

<Prev in Thread] Current Thread [Next in Thread>