Created
February 4, 2014 22:10
-
-
Save smlb/8813370 to your computer and use it in GitHub Desktop.
Modified version of lastsync.pl for Arch (I use it with conky)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use Date::Manip; | |
$date = `grep "pacman -Syu" /var/log/pacman.log | tail -n1 | cut -c 2- | cut -c-16`; | |
$date = &DateCalc("Jan 1, 1970 00:00:00 GMT",$date); | |
$date = UnixDate("$date","%A %H:%M"); | |
print "$date"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment