Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › date conversion issues with last day of year. › Reply To: date conversion issues with last day of year.
You are making something hard that should be easier. Read up on the Tcl clock command. It will do that for you plus take care of leap years, etc.
For example:
set dt [clock format [clock scan “10:34:30 PM 3 days”]