How does dynare represent time

I want to set a variable x, say, x =a+b* t, where t is time.how does that work in dynare?

Are you talking about perfect foresight simulations? There, you can define time as an exogenous variable, i.e. varexo.