I think this function assumes that the times are in seconds. Are seconds the only units which are supported by CSS?