Fix class Time

Code:
$time = new Time(0);
$time->millisecond();

Error:
java.lang.NullPointerException