simplified interface of time constructor