in reply to time ()

use the localtime function
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($newtime);

Replies are listed 'Best First'.
Re: Re: time ()
by gbarr (Monk) on Dec 05, 2001 at 19:51 UTC
    Using localtime is fine if $newtime is a real time value. But from the description I assume it is a delta time. ie a value like 21870. Becasue of the zone offset, localtime would produce different results around the world. However gmtime() will always give what is wanted.

    ($seconds,$minutes,$hours,$days) = (gmtime($newtime))[0,1,2,7];