giovedì, marzo 29, 2012

file timestamp in a variable

tmpdate=`stat -c '%Y' $file`
mydate=`date -d "1970-01-01 $tmpdate sec" +%Y%m%d.%H%M%S`

It doesn't consider the timezone...

Nessun commento: