move the class method to Time class