|  Developer
Updated on May 17, 2022

get_local_time()

  • Get hub local time in format is set by argument.
Edit
Edit
fields type description
format string [opt] time format
Edit
  • local time (string) or empty string in a case of an error. Example:
Edit
				
					local core = require "core"

local local_time = core.get_local_time()
print( local_time )

local format = "%I:%M%p"
local_time = core.get_local_time( format )
print( local_time )