Application:getTimeZone

From GiderosMobile
Revision as of 03:16, 31 January 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2026.1<br/> '''Class:''' Application<br/> === Description === Returns the IANA Time Zone IDs. <syntaxhighlight lang="lua"> (strin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2026.1
Class: Application

Description

Returns the IANA Time Zone IDs.

(string) = application:getTimeZone()

Return values

Returns (string) the time zone identifier representing the system current time zone

Most systems will return a primary time zone identifier such as "America/New_York" , though offset time zone identifier such as "-04:00" is possible too.

Example

local tz = application:getTimeZone()
print(tz) -- "America/New_York"

See also

For more information please check: