Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Not sure what language or system you want to use to do this, like in bash again, or C, or what, but it seems like if you can get the date of the file, perhaps from its properties or by taking it from the filename that you can use it to do a standard sort of 'date arithmetic'. You'll also need to get the current system date programmatically.

With these two items in hand (probably assigned to variables), maybe this page on methods will help,