try to use Time class