ISO 8601/RFC 3339 Date in Output Filename Format
 
Notifications
Clear all

ISO 8601/RFC 3339 Date in Output Filename Format  

  RSS
rahix
(@rahix)
Member
ISO 8601/RFC 3339 Date in Output Filename Format

Just wanted to share the template for including an ISO 8601 date in the output filename format setting for PrusaSlicer. There is a {timestamp} macro, but this also includes the time.  For just the date, you have to build the format manually.

I didn't find this posted anywhere before, so I'm doing it now, hoping to save others some time.  Here is the magic code:

# With dashes
{year}-{zdigits(month, 2, 0)}-{zdigits(day, 2, 0)}

# Without dashes
{year}{zdigits(month, 2, 0)}{zdigits(day, 2, 0)}

Hope this helps!

Posted : 31/05/2024 3:02 pm
Share: