use time as object not string