2 """Count shown files; display the date of oldest file
4 This file is a part of XSetBg.
8 __author__ = "Oleg Broytman <phd@phdru.name>"
9 __copyright__ = "Copyright (C) 2006-2014 PhiloSoft Design"
10 __license__ = "GNU GPL"
12 from time import localtime, asctime
13 from xsetbg_db import xsetbg_db
18 for key in xsetbg_db.keys():
20 if key.startswith('/') and ((oldest is None) or (xsetbg_db[key] < oldest)):
21 oldest = xsetbg_db[key]
25 print "Oldest:", asctime(localtime(oldest))