Issue Feature Closed

#16937Adding some more Date Conditions to class.t3lib_matchcondition.php

Olivier Dobberkau 02/02/07, 17:07 updated 06/27/08, 10:51

Description

I have added 2 more Date Conditions to class.t3lib_matchcondition.php.

year, julianday

Please have a look if this makes sense to you.

New Conditions

[year = 2006]
some.silly.salestax = 16
[end]

[year = 2007]
some.silly.salestax = 19
[end]

[julianday < 300]
some.temp.object.season = spring or summer
[end]

Thanks

Olivier

Code
case ‘year’: $theTestValue = date(‘Y’,$theEvalTime); break;
case ‘julianday’: $theTestValue = date(‘z’,$theEvalTime); break;
(issue imported from #M4914)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.