Project

General

Profile

Actions

Feature #16937

closed

Adding some more Date Conditions to class.t3lib_matchcondition.php

Added by Olivier Dobberkau about 17 years ago. Updated almost 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 #1

Updated by Andreas Otto † about 17 years ago

Hi Olivier,

we can try to integrate the new features into the next version of TYPO3.

Cheers,
Andreas

Actions #2

Updated by Andreas Otto † about 17 years ago

Discussing the issue on the core list now.

Actions #3

Updated by Ingo Renner about 17 years ago

fixed in trunk for TYPO3 4.2

Actions #4

Updated by Martin Kutschker about 17 years ago

Changed "julianday" in SVN to "dayofyear" to avoid ambiguity of definition of Julian Date.

Actions

Also available in: Atom PDF