src/League/Monga.php
public static function date($sec = null, $usec = 0)
    {
        $sec === null && $sec = time();

        return new MongoDate($sec, $usec);
    }
public static function date($sec = null, $usec = 0)
    {
        $sec === null && $sec = time();

        return new MongoDate($sec, $usec);
    }
public static function date ( $ sec = null , $ usec = 0 ) { $ sec === null && $ sec = time ( ) ; return new MongoDate ( $ sec , $ usec ) ; }
Create a MongoDate object

@param int $sec timestamp
@param int $usec

@return MongoDate
Create a MongoDate object