[Typo3-dev] Date calculations in TS
Ries van Twisk
typo3 at rvt.dds.nl
Wed Feb 16 22:06:29 CET 2005
Christopher wrote:
>Hiya,
>
>--- Ries van Twisk <typo3 at rvt.dds.nl> wrote:
>
>
>
>>Sorry, worng list....
>>
>>
>>
>>>Het List,
>>>
>>>I currently have something like this:
>>>
>>>page.headerData.5 = TEXT
>>>page.headerData.5.value (
>>> <meta http-equiv="expires" content="{date : D, j M Y H:i:s}
>>>
>>>
>>GMT">
>>
>>
>>>)
>>>page.headerData.5.insertData = 1
>>>
>>>But now I want a add a date to the field and not use the current
>>>
>>>
>>date,
>>
>>
>>>is that possible?
>>>
>>>
>>>
>
>
>Search the StdWrap section in the TSref [1] for 'strftime' and 'date'.
>
>-Christopher
>
>
>
Christopher,
I have solved it like this:
page.headerData.5 = TEXT
page.headerData.5 {
cObject = TEXT
cObject.data = date:U +86400
prioriCalc = intval
date = D, j M Y H:i:s \G\M\T
wrap = <meta http-equiv="expires" content="|">
}
Ries
--
R. van Twisk
http://www.metamorf.net
Our Typo3 enabled website: http://www.livetravelguides.com
Instand help for Typo3? irc:/irc.freenode.net/typo3
Looking for documentation? http://typo3.org/documentation/
More information about the TYPO3-dev
mailing list