Allow [version], [timestamp], [year], [month], [day], [hour], [minute], [second] in filenames.

This commit is contained in:
Alessandro Ranellucci 2012-05-01 15:01:56 +02:00
parent 49ff9a0ebe
commit 7ee08be0b8
2 changed files with 11 additions and 1 deletions
lib/Slic3r

View file

@ -377,7 +377,7 @@ sub write_gcode {
# write some information
my @lt = localtime;
printf $fh "; generated by Slic3r $Slic3r::VERSION on %02d-%02d-%02d at %02d:%02d:%02d\n\n",
printf $fh "; generated by Slic3r $Slic3r::VERSION on %04d-%02d-%02d at %02d:%02d:%02d\n\n",
$lt[5] + 1900, $lt[4]+1, $lt[3], $lt[2], $lt[1], $lt[0];
print $fh "; $_\n" foreach split /\R/, $Slic3r::notes;