SHIP:System Variable:shiptime

From Serious Documentation
Revision as of 08:39, 1 April 2014 by Admin (talk | contribs) (Created page with "{{SysVarTableStart|}} |<onlyinclude>{{SysVar|shiptime}}||{{DataType|Time}}||Read/Write||This variable tracks the current system time. You can change these values, but they ar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
System Variable Data Type Permissions Description
shiptime Time Read/Write This variable tracks the current system time. You can change these values, but they are only retained across power cycles if the platform has battery-backed RTCC capabilities.

It is very easy to create a clock in our GUI by listening to shiptime. The simple script

text.value = toString(shiptime.day);

within a listener with the listeningto property set to "shiptime.minute" will automatically keep the text value updated every second.