hello PD,
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
Thanks in advance! Best n
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
Thanks Roman,
Here is a working example for archive. n
Le 18/03/2021 à 10:29, Roman Haefeli a écrit :
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
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list