Skip to content

Get Date Time

Game Version Wrapper

Returns a realm-aware date table or unix timestamp using ElvUI’s server-time handling.

NamespaceEModuleCoreLifecyclestable
E:GetDateTime(localTime, unix)

Returns a realm-aware date table or unix timestamp using ElvUI’s server-time handling.

localTime: Use local/server time directly. unix: Return a unix timestamp instead of a date table.

Date table or unix timestamp depending on the unix argument.

local realmTime = E:GetDateTime(false)

Use when addon timestamps should line up with ElvUI realm-time display.

Source: ElvUI/Game/Shared/General/API.lua:235