LTspice a voltage source as a function of time
The problem is you try to make an alterating voltage source with a DC source.
Use Arbitrary behavioral voltage source (BV) instead.
You don't need curly braces for that, just V=time*10m