Removed deprecation warnings on getMilliseconds