Reply To: date conversion issues with last day of year.

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.

#58380
gricelda lopez
Participant

    I found another way to add the days. Instead of using the julian date I am just adding days to my IF statement. So far it works, it will need to test it out a little more using different dates but it works so far.

              if [string equal $juliant_day “Fri”] {

              set dt [clock format [clock scan “3 days”] -format %y%m%d]

                      echo jult date= $dt

             } elseif [string equal $juliant_day “Sat”] {

             set dt [clock format [clock scan “2 days”] -format %y%m%d]

          echo jult date= $dt

             } else {

    set dt [clock format [clock scan “1 days”] -format %y%m%d]

                      echo jult date= $dt

                 }