accepts time value