| TUyearLeap | TCL UTILITIES USER MANUAL | TUyearLeap |
|---|
| TUyearLeap  | Yr |
| Yr | - | year |
for { set Yr 1949 } { $Yr < 1955 } { incr Yr } {
set Days [TUyearLeap $Yr]
puts stderr "The year $Yr has $Days days"
}
> The year 1949 has 365 days
> The year 1950 has 365 days
> The year 1951 has 365 days
> The year 1952 has 366 days
> The year 1953 has 365 days
> The year 1954 has 365 days
| Apr 29, 2003 |
|---|