Skip to content

getDateTime

getDateTime()

Return current system date and time that is kept by the RTC unit

Parameters

None.

Returns

NameTypeDescription
-tablecurrent date and time, table elements:
FieldTypeDescription
yearnumberyear
monnumbermonth
daynumberday of month
hournumberhours
hour12numberhours in US format
minnumberminutes
secnumberseconds
suffixtextam or pm

Availability

  • Since: unknown
  • Radio support: all

Source

radio/src/lua/api_general.cpp