search for: shifttim

Displaying 1 result from an estimated 1 matches for "shifttim".

Did you mean: shifttime
2003 Oct 16
0
[alert] DST change and date comparisons
...a list on standard-input. Whether you use a positive or negative shift will depend on which end you decide to adjust. I include here a script to do exactly that. This is an example of how to use the script: touch -d '01:00 13-apr-03' /tmp/cmpfile find . -type f ! -newer /tmp/cmpfile | shifttime.pl 3600 ------ shifttime.pl ------- #!/usr/bin/perl $offset = shift; $offset += 0; !$offset and die "must specify offset"; while (<STDIN>) { chomp; -w or next; $oldtime = (stat $_)[9]; $oldtime or next; $newtime = $oldtime + $offset; utime $newtime, $newtime, $_; } -----...