Moin,
$d2=((int)($d/86400))*86400;
So, und das jetzt noch ohne überflüssige Division/Multiplikation:
$d3=$d - $d % 86400;
floor:36.299628973 - 1095984000
int :30.1205070019 - 1095984000
mod :29.3255560398 - 1095984000
--
Henryk Plötz
Grüße von der Ostsee
~~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~~
~~ Help Microsoft fight software piracy: Give Linux to a friend today! ~~
Henryk Plötz
Grüße von der Ostsee
~~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~~
~~ Help Microsoft fight software piracy: Give Linux to a friend today! ~~