Because of Safari i need a timestamp behind my linked css-file.
Any ideas how to?
I solved it like this:
sub {
#2019-10-11_02:01:59
#%04u-%02u-%02u_%02u:%02u:%02u
use strict;
use warnings;
my $file= "/... path .../app.css";
my @date=reverse((localtime(( stat $file )[9] ))[0..5]);
$date[0]+=1900;
$date[1]+=1;
my $output=sprintf('%04u%02u%02u%02u%02u%02u',@date);
return $output;
}
Any ideas how to?
I solved it like this:
Code:
sub {
#2019-10-11_02:01:59
#%04u-%02u-%02u_%02u:%02u:%02u
use strict;
use warnings;
my $file= "/... path .../app.css";
my @date=reverse((localtime(( stat $file )[9] ))[0..5]);
$date[0]+=1900;
$date[1]+=1;
my $output=sprintf('%04u%02u%02u%02u%02u%02u',@date);
return $output;
}