How to do a Unix timestamp in a variable in rm4.0?

The list is here:

But to quote the relevant sentence for you:

When setting a String value, %device%, %value%, %time%, and %date% are available for most recent event for that rule

I'm not aware of anything that would get a long-format date. A custom app certain could format something in whatever way you want, but that might be overkill for this one particular situation.