First create a full date adding today's date...
% set Date1 "[clock format [clock seconds] -format %m/%d/%Y] 02:35:00"
01/21/2005 02:35:00
% set Date2 "[clock format [clock seconds] -format %m/%d/%Y] 02:45:00"
01/21/2005 02:45:00 Then get the seconds values out of those dates
% set numDate1 [clock scan $Date1]
1106296500
% set numDate2 [clock scan $Date2]
1106297100 Then you can compare...
% if {$numDate2 > $numDate1} {puts yes}
yes
% if {$numDate1 > $numDate2} {puts yes}
%
jicote
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.