src/Zip.php
protected function makeDosTime($time)
    {
        $timearray = getdate($time);
        if ($timearray['year'] < 1980) {
            $timearray['year']    = 1980;
            $timearray['mon']     = 1;
            $timearray['mday']    = 1;
            $timearray['hours']   = 0;
            $timearray['minutes'] = 0;
            $timearray['seconds'] = 0;
        }
        return (($timearray['year'] - 1980) << 25) |
        ($timearray['mon'] << 21) |
        ($timearray['mday'] << 16) |
        ($timearray['hours'] << 11) |
        ($timearray['minutes'] << 5) |
        ($timearray['seconds'] >> 1);
    }
protected function makeDosTime($time)
    {
        $timearray = getdate($time);
        if ($timearray['year'] < 1980) {
            $timearray['year']    = 1980;
            $timearray['mon']     = 1;
            $timearray['mday']    = 1;
            $timearray['hours']   = 0;
            $timearray['minutes'] = 0;
            $timearray['seconds'] = 0;
        }
        return (($timearray['year'] - 1980) << 25) |
        ($timearray['mon'] << 21) |
        ($timearray['mday'] << 16) |
        ($timearray['hours'] << 11) |
        ($timearray['minutes'] << 5) |
        ($timearray['seconds'] >> 1);
    }
protected function makeDosTime ( $ time ) { $ timearray = getdate ( $ time ) ; if ( $ timearray [ 'year' ] < 1980 ) { $ timearray [ 'year' ] = 1980 ; $ timearray [ 'mon' ] = 1 ; $ timearray [ 'mday' ] = 1 ; $ timearray [ 'hours' ] = 0 ; $ timearray [ 'minutes' ] = 0 ; $ timearray [ 'seconds' ] = 0 ; } return ( ( $ timearray [ 'year' ] - 1980 ) << 25 ) | ( $ timearray [ 'mon' ] << 21 ) | ( $ timearray [ 'mday' ] << 16 ) | ( $ timearray [ 'hours' ] << 11 ) | ( $ timearray [ 'minutes' ] << 5 ) | ( $ timearray [ 'seconds' ] >> 1 ) ; }
Create a DOS timestamp from a UNIX timestamp

DOS timestamps start at 1980-01-01, earlier UNIX stamps will be set to this date

@param $time
@return int
Create a DOS timestamp from a UNIX timestamp