[TYPO3] Just looking to verify the time part of start and stop times.

Patrick O'Hara pdohara at practicalprogrammer.org
Wed Apr 19 13:19:32 CEST 2006


Curt,
    Thanks that helps.  How would I go about submitting a documentation
patch to cover this?  Any ideas?



--
Tanks for your Support
Pat O'Hara
  _      _      _
 /*\==  /*\==  /*\==
<ooo>  <ooo>  <ooo>

On 4/19/06, Curt Grimley <curt at cgss.net> wrote:
>
>
> Hi Patrick,
> For pages anyway, the logic is as shown here:
>
> (from class.t3lib_tstemplate.php:)
>    $this->whereClause.=
>      'AND (starttime<='.$GLOBALS['SIM_EXEC_TIME'].')
>      AND (endtime=0 OR endtime>'.$GLOBALS['SIM_EXEC_TIME'].')';
>
> The SIM_EXEC_TIME is the result of the php time() function when the
> request was made. It is a unix timestamp - integer no. of seconds.
>
> The starttime and endtime fields in the pages table are unix timestamps
> also, but because of the CMS interface, they are always midnight; i.e.,
> a multiple of 86400 seconds.
>
> The 'start date' is the date it starts showing, and the 'stop date' is
> the day it will stop showing.  To be precise, the page starts showing at
> 12:00:00 AM on the start date, and stops showing at 12:00:00 AM on the
> end date.
>
> This means if you make starttime = endtime, the page will never show. To
> show a page for just one date (d), you would set them to d and d+1.
>
> And I rather assume this is all based on server time, meaning the time
> at the user's position doesn't matter. Hope that helps! ~cg
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list