Allow [version], [timestamp], [year], [month], [day], [hour], [minute], [second] in filenames. #318
This commit is contained in:
parent
49ff9a0ebe
commit
7ee08be0b8
2 changed files with 11 additions and 1 deletions
lib/Slic3r
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue