Project

General

Profile

Actions

Feature #16937

closed

Adding some more Date Conditions to class.t3lib_matchcondition.php

Added by Olivier Dobberkau almost 18 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2007-02-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

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)


Files

matchconditions.patch (1.24 KB) matchconditions.patch Administrator Admin, 2007-02-02 17:07
Actions

Also available in: Atom PDF