Deutsch   English   Français   Italiano  
<1753345493-4652@newsgrouper.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: nntp.eternal-september.org!news.eternal-september.org!eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: rene <user4652@newsgrouper.org.invalid>
Newsgroups: comp.lang.tcl
Subject: Re: what's the best way to get today at 00:00:00?
References: <105spb5$k1i3$1@dont-email.me>
Date: Thu, 24 Jul 2025 08:24:53 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1753345493-4652@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user4652
Injection-Date: Thu, 24 Jul 2025 08:24:53 GMT
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]