[PD] Formatted datetime message

Roman Haefeli reduzent at gmail.com
Thu Mar 18 10:29:37 CET 2021


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210318/a5266b4c/attachment.sig>


More information about the Pd-list mailing list