can I use Time in functions?

Hello,

I am trying to write a function which compares a device’s OID hrSystemDate for a difference of more than x minutes from server’s time. Is it possible to use the variable “Time” for that and how can I code it?

Andreas