Updated the time getting methods.