ec_last_second_in_the_day the_dateWhat it does:
Returns the last second of the given day's date. Input date should be in format YYYY-MM-DD HH24:MI:SS or YYYY-MM-DD.Defined in: /web/philip/tcl/ecommerce-utilities.tcl
Source code:
regexp {^(....)-(..)-(..)} $the_date garbage year month day return "$year-$month-$day 23:59:59"