[Typo3-dev] OT: maketime

Peter Russ peter.russ at 4dfx.de
Thu Sep 23 18:19:17 CEST 2004


Peter Niederlag wrote:
> Hi,
> 
> can somebody explain to me why
> <?php
> $timestamp = mktime(0, 0, 0, 1, 1, 1970, 0);
> echo $timestamp . "\n";
> ?>
> 
> does return '-8400'
> 
> while
> 
> <?php
> $timestamp = mktime(1, 0, 0, 1, 1, 1970, 0);
> echo $timestamp . "\n";
> ?>
> 
> Does return '0'?
> 
> I just don't get it. :-<
> 
> the later actually to me seems like 1 hour from 1.1.1970 which should 
> return something like 3600.
> 
> is this influenced by some locale-settings(could be differences between 
> daytime-savings, gmt, ...)?
> 
> Thx,
> Peter

see. http://de3.php.net/manual/de/function.mktime.php
So the '70s  are very critical ;-) And they are back again!

Regs Peter.




More information about the TYPO3-dev mailing list