NPE check in getTimeInMillis()

added a null check to getTimeInMillis()
and remove the null passed parameters
this + getTimeInMillis() should be private to prevent API-creep. 
less stuff we expose -> less outcry when we change it later :)