[pmwiki-users] Adding ctime=0
Martin Cuno
martin.cuno at posteo.de
Tue Feb 4 03:10:39 PST 2025
Hello everyone, a small thing:
I have almost 10,000 files in one of my PmWikis. Some of them are from ancient sources, imported as flat files, and that's why the "ctime=" information is missing here.
Sometimes this bothers me, because I have info fields like: "This file was created on ... and last modified on .... If ctime doesn't exist, today's date is used. Maybe I could change that with an "if" condition. But I would prefer to add that to the files, namely as "ctime=0". Then it says "January 1, 1970" and everyone knows. I like my files to be "in order".
I'm not currently able to get this to work with external tools. So: Since PmWiki writes information to the raw file format when saving anyway, couldn't it add this information as well?
If it's not of general interest (candidate for the core), I'm happy to use a small code snippet.
Thanks! Martin from Siegen, Germany
--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com
More information about the pmwiki-users
mailing list