[TYPO3-dev] time() vs. $GLOBALS['SIM_EXEC_TIME']
Oliver Klee
typo3-german-01 at oliverklee.de
Mon Mar 27 14:42:09 CEST 2006
Hi,
when doing DB queries in my TYPO3 extension, I sometimes need to compare
a time/date with the current time/date, e.g. for event records that lie
in the past or timestamps that are older than a certain time-to-live etc.
As far as I know, there are two common ways of getting the current
date/time:
1. time()
2. $GLOBALS['SIM_EXEC_TIME']
Is there any reason why it would make sense to use
$GLOBALS['SIM_EXEC_TIME'] instead of just the (shorter) time()?
Thanks in advance,
Oliver
More information about the TYPO3-dev
mailing list