Path: nntp.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Mark Summerfield Newsgroups: comp.lang.tcl Subject: what's the best way to get today at 00:00:00? Date: Thu, 24 Jul 2025 08:02:45 -0000 (UTC) Organization: A noiseless patient Spider Lines: 9 Message-ID: <105spb5$k1i3$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 24 Jul 2025 08:02:46 +0000 (UTC) Injection-Info: dont-email.me; posting-host="d8ff808d3ce9b62b721f33d976bf561d"; logging-data="656963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UU1zR0EumMewTdMYJZLU5" User-Agent: Pan/0.154 (Izium; 517acf4) Cancel-Lock: sha1:2/hcKU/plNu3S6z8gZWsHqrHrvo= 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?