On Sun, Jul 13, 2008 at 8:42 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote:
> On Sun, Jul 13, 2008 at 06:53:56PM +0100, Hans wrote:
> I'm planning to add this to the core, but was planning to
> use $LastModifiedTime instead of $ModTime. Comments?
Strongly support adding it to core. I just added 3 separate
definitions to toolbox.php to facilitate this sort of things with
recipes that declare a dependency on toolbox.
SDV($FmtPV['$LastModifiedUnix'],'$page["time"]');
SDV($FmtPV['$LastModifiedYMD'], 'strftime("%Y-%m-%d",
$page["time"])'); // or %F
SDV($FmtPV['$LastModifiedISO'], 'strftime($_GLOBALS["TimeISOFmt"],
$page["time"])');
Obviously whatever is chosen for core will quickly become "intuitive"
as we all get used to it so in a sense it doesn't matter. My thinking
was that $LastModified already contains a time element so I was
looking at either $LastModifiedSeconds or $LastModifiedUnix to clearly
indicate what it represented. But either of the other 2 y'all have
suggested would work fine and I'm certainly not going to complain.
My thinking on the $LastModifiedYMD and $LastModifiedISO is that they
are both more "standard" representations of date/time and at some
point or another they will be useful and could be legitimate
candidates for core as well. Having said that, you can always {(ftime
...)} the unix time into either of the others so I suppose it's maybe
not that big a deal.
-Peter
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users