GetSecondsPlayed

From ESOUI Wiki

Revision as of 19:58, 15 July 2019 by DavidJCobb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function returns the total number of seconds that the player has spent logged into the current character. It powers the /played chat command.

Example

local playedTime = ZO_FormatTime(GetSecondsPlayed(), TIME_FORMAT_STYLE_DESCRIPTIVE, TIME_FORMAT_PRECISION_SECONDS)
local text = zo_strformat(SI_CHAT_MESSAGE_PLAYED_TIME, GetRawUnitName("player"), playedTime)
--
-- text == something like "You have played John Zenimax for 2 days, 21 hours, 48 minutes, and 49 seconds."
--

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox