Check the tcl docs for the clock scan command.
The date can only be in specific formats -- I know
this works because I use it all the time.
You can use either the relative time formatting stuff
with the clock scan command, or use the hard way i
suggessted with computing intervals in seconds and
adding them.
-derek
--- Prakash Sinha <[EMAIL PROTECTED]> wrote:
> In continuation to format date
>
> i am using clcok scan with ADP, and it seems
> like when the date variable
> passed to it is systemDate then it works but not
> with the date in advance.
>
> for {set i 0} {i < 10} {incr i 1} {
> set testDate [clock format[clock
> scan "$mDt + $i"] -format "%Y%m%d"]
> }
>
> IT DOES NOT WORK WHEN THE VALUE OF mDt IS
> CHANGED FROM THE SYSTEM DATE. If
> the value of mDt is 20010429 and todays date is
> 20010427 IR FAILS..........
>
> ANY IDEA???????/
>
> Prakash
=====
"Are you going to spend the rest of your life selling sugar water, or are you going to
come with me and change the world?"
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/