Changeset 180
- Timestamp:
- Jan 20, 2018, 12:34:30 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/project-meta/project-meta
r179 r180 167 167 my $data_set = $meta->{'public-dap'}{'data-set'}; 168 168 my $acronym = $meta->{'project'}{'acronym'}; 169 my $time = time;170 169 171 170 push @{$data_set}, 'AUTHORS.txt', 'COPYRIGHT.txt', 'LICENCE.txt'; … … 196 195 } 197 196 197 my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = time; 198 $year += 1900; 199 $mon++; 200 my $date = sprintf '%04i%02i%02i-%02i%02i', $year, $mon, $mday, $hour, $min; 201 198 202 # Save the Zip file 199 unless ($zip->writeToFileNamed("$current_dir/$acronym- $time.zip") == AZ_OK) {203 unless ($zip->writeToFileNamed("$current_dir/$acronym--$date.zip") == AZ_OK) { 200 204 die 'Error: zip write error'; 201 205 }
Note: See TracChangeset
for help on using the changeset viewer.