×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Massimo Zappino
Added: Jan 13, 2015 1:36 PM
Modified: Aug 27, 2017 3:32 PM
Views: 15
  1. stat -c %y /var/lib/apt/periodic/update-success-stamp
  2.  
  3.  
  4. # get timestamp
  5. DATE_TIME=`stat -c %y /var/lib/apt/periodic/update-success-stamp | cut -f1 -d'.'`; date --date="${DATE_TIME}" "+%s"