I don't always have Perl installed.
--- /dev/null
+#!/usr/bin/python
+#
+# Based on
+# http://conky.sourceforge.net/lastsync.pl
+
+import time
+
+syncs = []
+for line in file('/var/log/emerge.log', 'r'):
+ if not 'Sync completed' in line:
+ continue
+ sync_time = int(line[:10])
+ syncs.append(sync_time)
+
+print(time.strftime('%a, %b %e', time.localtime(syncs[-1])))
+++ /dev/null
-#!/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";