LibTime-1.0

Libraries

A little library around date, time and GetGameTime and more...

WoW 12.0.5 Actively Maintained

Trend Explorer

Recent download momentum

Hourly download deltas for the last 48 hours.

Latest hour +0 Jun 2, 11 AM
Peak hour +20 Jun 4, 4 AM
Average +0 per hour

About this addon

What it does

Description

    A little library around date, time and GetGameTime and more...

 

To use in addons

  lib = LibStub("LibTime-1.0")

 

API

    GetGameTime

        This library detecting the seconds of server time.

        The fourth return value is a boolean to signalize sycronization.

    hours, minutes, seconds, secondsSynced = lib.GetGameTime( )

    GetLocalTime

    hours, minutes, seconds = lib.GetLocalTime( )

    GetUTCTime( [<inSeconds>] )

    hours, minutes, seconds = lib.GetUTCTime( )
seconds = lib.GetUTCTime(true) -- seconds since 1.1.1970 0:00

    GetCountryTime( <countryId>[, <inSeconds> ] )

    hours, minutes, seconds, countryName = lib.GetCountryTime( 98 )
seconds = lib.GetCountryTime(17,true)

    GetTimeString("GameTime|LocalTime|UTCTime|CountryTime"[, b24Hours[, displaySeconds[, countryId]]])

    "00:00" = lib.GetTimeString("GameTime",true)
"00:00:00" = lib.GetTimeString("LocalTime",true,true)
"00:00:00 AM" = lib.GetTimeString("UTCTime",false,true)
"00:00 PM" = lib.GetTimeString("CountryTime",false,false,23)

    iterateCountryList

    for id, name in lib.iterateCountryList() do
end

    GetPlayedTime

        This library using "RequestTimePlayed" on startup and adding session time to any call of this function.

        `lib.RequestPlayedTime()` must be execute before to get data from Client API.

    playedTotal, playedLevel, session = lib.GetPlayedTime( )

    RequestPlayedTime

    lib.RequestPlayedTime( )

 

Localization

    Do you want to help translate this addon?
    See Curseforge localization tool

 

Hizuro's other projects

• https://www.curseforge.com/members/hizuro_de/projects

At-a-glance numbers

Performance highlights

  • Peaked at Hot #867 on Jun 2, 2026.
  • Peaked at Rising #496 on Jun 4, 2026.
  • Featured on the Hot list across 5 distinct weeks.
  • Shipped 2 releases in the last 30 days.
  • Averaging 9 new downloads per day over the past week.

Discover more

Keep exploring

Similar addons you might also want to check out.