Sujet : Re: what's the best way to get today at 00:00:00?
De : user4652 (at) *nospam* newsgrouper.org.invalid (rene)
Groupes : comp.lang.tclDate : 24. Jul 2025, 09:24:53
Autres entêtes
Message-ID : <1753345493-4652@newsgrouper.org>
References : 1
User-Agent : Newsgrouper/0.7.3
Mark Summerfield <
m.n.summerfield@gmail.com> posted:
I have a function that returns today's date/time at 00:00:00, e.g.,
2025-07-24T00:00:00, returned as seconds:
proc start_of_day {} {
clock scan "[clock format now -format %Y]-[clock format now \
-format %m]-[clock format now -format %d]" -format "%Y-%m-%d"
}
Is there a better way?
clock scan [clock format now -format %Y-%m-%d]