+1 This is what I was going to suggest. I agree it would be nice to have some sort of date/time utility built in, especially as it's part of C / Posix as far as I know.
> On Mar 18, 2021, at 12:00 PM, [email protected] wrote: > > Message: 1 > Date: Thu, 18 Mar 2021 10:29:37 +0100 > From: Roman Haefeli <[email protected] <mailto:[email protected]>> > To: [email protected] <mailto:[email protected]> > Subject: Re: [PD] Formatted datetime message > Message-ID: <[email protected] > <mailto:[email protected]>> > Content-Type: text/plain; charset="utf-8" > > On Thu, 2021-03-18 at 09:57 +0100, Nicolas Montgermont wrote: > >> I was wondering what is the best (as in easiest/cleaner/vaniller) way >> to >> produce a filename with formatted date inside these days. >> producing that kind of message with a bang: >> YYYYMMDD-HHMMSS > > > I don't think there is a vanilla way to get date and time. Zexy comes > with [date] and [time]. You could use [makefilename %02d] to create > zero-padded symbols from the different outlets and use a message box to > glue the whole string together: > > [symbol $1$2$3-$4$5$6( > > Roman -------- Dan Wilcox @danomatika <http://twitter.com/danomatika> danomatika.com <http://danomatika.com/> robotcowboy.com <http://robotcowboy.com/>
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
