[pmwiki-users] Date Comparison
Thomas Lederer
celok at gmx.net
Wed Mar 29 08:56:31 CST 2006
Ok... got it to work... (peeked into pmwiki.php :)
$TimeFmt = '%d.%m.%Y um %H.%M Uhr';
$FmtPV['$Today'] = 'strftime($GLOBALS["TimeFmt"], time())';
That way you can refer to $TimeFmt or whatever other variable you want
to base your output on.
Hope that helps,
Tom
Thomas Lederer schrieb am 29.03.2006 16:32 Uhr:
> Hmm... there is a solution on your Profile Page:
> http://www.pmwiki.org/wiki/Profiles/HaganFox
>
> I modified the time variables to show the current date:
>
> $FmtPV['$Today'] = 'strftime("%d.%m.%Y", time() )';
>
> where %d.%m.%Y is the German format.
> Or did i miss the point?
>
> Best Regards,
> Tom
>
> P.S.: i tried to integrate the $TimeFmt variable, but failed. *shrug*
>
> H. Fox schrieb am 29.03.2006 10:43 Uhr:
>> >From the PmWiki.Quesions page on pmwiki.org:
>>
>> Is there a way to access today's date (a PHP function) to, say, show
>> overdue items in red, or items due today in black?
>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>>
>>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
More information about the pmwiki-users
mailing list