return time object insread of string