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.
Parameters
Section titled “Parameters”localTime: Use local/server time directly. unix: Return a unix timestamp instead of a date table.
Returns
Section titled “Returns”Date table or unix timestamp depending on the unix argument.
Example
Section titled “Example”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