From ESOUI Wiki
This function returns the total number of seconds that the player has spent logged into the current character. It powers the /played chat command.
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." --