[Typo3-dev] convert timestamp to TYPO3 datetime

Sacha Vorbeck sachav*removethisspamtrap* at gmx.net
Thu Sep 23 16:56:28 CEST 2004


Hi Peter,

if you enter 9:30 into a time field in the BE, it is converted to 34200 
and 9:31 is converted to 34260.

The js-function that generates the 5digit timestamp should be in 
http://yourdomain/typo3/t3lib/jsfunc.evalfield.js

Isn`t there a method that converts a common timestamp created with 
mktime into the 5digit format used by TYPO3?

Handcoded I would transfer 9:30 to 9,5 and multiply it by 60 two times. 
But this doesn`t look really elegant to me.

-- 
Ciao,
Sacha




More information about the TYPO3-dev mailing list