Bug #10385
Documentation about Conditions (time) is incomplete
| Status: | Closed | Start date: | 2010-10-21 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Chris topher | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 4.5.0 | |||
| Votes: | 0 |
Description
the only operators listed in conditions "hour", "minute", "dayofyear", "dayofweek", "dayofmonth", "month", "year" are
">", "<" and "="
Related issues
| duplicated by Core - Bug #23817: conditions on time with operators less than or greater th... | Closed | 2010-10-21 | ||
| blocks TSref - Task #13698: Create a manual version for TYPO3 4.5 | Closed | 2011-03-08 |
Associated revisions
History
Updated by Susanne Moog over 2 years ago
While we are at it, we should also make it clearer that the "=" sign as separator is needed all the time (more examples perhaps...)
Updated by Chris topher about 2 years ago
- Status changed from New to Accepted
- Assignee changed from Francois Suter to Chris topher
- % Done changed from 0 to 100
I just tested this and the conditions "smaller or equal", "bigger or equal" and "unequal" are working, too.
These three operands work with all conditions concerning time.
The first "=" sign is always needed and is no operator. After that follow the operator and then the hour.
When using multiple operators in one condition - separated with a comma -, it only works without repeating that first "=" sign everytime, e.g.
[hour = 8, > 15]
page.20.subparts {
KOPF = TEXT
KOPF.value = Hour equals 8 OR it is bigger than 15.
}
[GLOBAL]
I have added some examples to make that clear.
I also added a note to the meaning of the comma separator.
Finally I put in an example for 8-16 o'clock, which should demonstrate what you cannot do with the comma.
In contrast a condition matching for 8 until 16 o'clock would be: [hour = > 7] && [hour = < 16]
(An alternative would be
[hour = 8,9,10,11,12,13,14,15], but code is poetry, right?)Updated by Chris topher about 2 years ago
- Status changed from Accepted to Resolved
Applied in changeset r664.
Updated by Chris topher about 2 years ago
- Target version set to 4.5.0
Updated by Chris topher about 2 years ago
- Subject changed from documentation about Conditions (time) is incomplete to Documentation about Conditions (time) is incomplete
Updated by Chris topher about 2 years ago
- Status changed from Resolved to Closed