There is no built in single variable for the RTC. But you can assemble one yourself to fit the purpose. i.e. write a custom function which every second would take the values of TIME[1], TIME[2] and TIME[3] as well as DATE[n] and combine into a single 32-bit number. This number can then be used by other custom functions to achieve what you mentioned.