summaryrefslogtreecommitdiffstats
path: root/scripts/lastsync.pl
blob: 37bef03c7e41ae4e69027fe496c4a0a49f7dfc0d (plain)
1
2
3
4
5
6
7
#!/usr/bin/perl
use Date::Manip;

$date = `grep "Sync completed" /var/log/emerge.log | tail -n1 | cut -c-10`;
$date = &DateCalc("Jan 1, 1970  00:00:00 GMT",$date);
$date = UnixDate("$date","%A %H:%M");
print "$date";