On 18 Jan, David Mannan wrote:
> Greetings TCL World;
> 
> I've been having a problem with variables set by the system "date" command
> whenever the day of the month/year is "008" or "009".  This has popped up 
> several
> times before, and is easy enough to patch around - but now it has moved to 
> "018".
> 
> Has anyone seen this before, and more importantly does anyone know a fix 
> for
> it.
> 
> What I'm using:   HPUX 10.20
> VTcl version:     1.20
> 
> What I'm doing:
> 
>   global ExpireDate;
>       set ExpireDate [exec date +%j]
>       set bob [expr $ExpireDate + 90]
>       if {$bob >= 365} { set ExpireDate [expr $bob - 365 ]
>         } else { set ExpireDate $bob }
> 

BTW, take a look at the "clock" command (from Tcl 7.6 on) too. It'll
take away the need to do an exec date.

L

-- 
Penguin Power!

mailto:[EMAIL PROTECTED]
URL: http://www.geocities.com/Heartland/Pointe/5248/

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to