[PD] Epoch time ...

IOhannes m zmoelnig zmoelnig at iem.at
Fri Jan 23 09:33:52 CET 2009

e deleflie wrote:
> Is there some easy way of generating the epoch time in pd?
> I know about Zexy's [date] and [time] objects ..... they could do it
> with a bit of work.
> or ..... does anyone know of a way to generate some unique string (or
> number) .... its just so that I can hit a bang at anytime and record
> the current audio output into a file, without having to worry about
> the file name.

in this case i definitely would use [date]+[time]+[random].

the problem with a real epoch time is, that Pd cannot handle it as a 
number (due to restrictions of 32bit float which is Pd's internal 
numeric format), so it would have to be a symbol, which actually limits 
the usefulness to generating UID.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090123/817518c5/attachment.bin>

More information about the Pd-list mailing list