Returns the date of the last change of state or update of value for the Unit, last time a global script was run and as of build 834 the last time a packet was received from an interface.
last timestamp of (name of unit, global script or interface)
set MyDate to last timestamp of "Kitchen Motion" write log "last kitchen motion was on " & (MyDate as text)