Prakash, before poor Rob has a apoplexy, please RTFM for the
"clock" command.

"clock scan" only accepts date formats in a particular way:

          date A specific month and day with optional year.   The
               acceptable formats are mm/dd?/yy?, monthname dd ?,
               yy?, dd monthname ?yy? and day, dd  monthname  yy.
               The default year is the current year.  If the year
               is less than 100, we  treat  the  years  00-68  as  |
               2000-2068  and  the years 69-99 as 1969-1999.  Not  |
               all platforms can represent the years 38-70, so an  |
               error may result if these years are used.


$mDt needs to look like "04/29/2001" and not "20010429".  Then, it'll
work.

- Dossy


On 2001.04.27, Prakash Sinha <[EMAIL PROTECTED]> wrote:
> I am sorry it was TYPING MISTAKE i am using $i < 10, it fail at clock scan
>
> My Code is :
>         for {set i 0} {$i < 8} {incr i 1} {
>                 set testDate [clock format [clock scan "$mDt + $i days"] -format
> "%Y%m%d" ]
>         }
>
>         When the value of mDt is 20010427 it works well, but when it changes to
> 20010429 it fails
>         It fails saying
>         Error: unable to convert date-time string "20010429 + 0 days"
>         unable to convert date-time string "20010429 + 0 days"
>
>
> Sorry :-)
> Prakash

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/

Reply via email to