[PD] Formatted datetime message

Dan Wilcox danomatika at gmail.com
Thu Mar 18 13:22:23 CET 2021


+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, pd-list-request at lists.iem.at wrote:
> 
> Message: 1
> Date: Thu, 18 Mar 2021 10:29:37 +0100
> From: Roman Haefeli <reduzent at gmail.com <mailto:reduzent at gmail.com>>
> To: pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>
> Subject: Re: [PD] Formatted datetime message
> Message-ID: <25eb29855607eae0a6afc8bed501a6c2e16f39c5.camel at gmail.com <mailto:25eb29855607eae0a6afc8bed501a6c2e16f39c5.camel at gmail.com>>
> 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/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210318/2ffcd945/attachment.htm>


More information about the Pd-list mailing list