promotional bannermobile promotional banner

LibTime-1.0

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

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

LibTime-1.0 Team

profile avatar
  • 17
    Followers
  • 20
    Projects
  • 8.3M
    Downloads

More from hizuro_deView all

  • LibRaces-1.0 project image

    LibRaces-1.0

    Little library to translate localized race names to english race names "Mensch > Human"

    • 13.5K
    • October 27, 2026
  • LibColors-1.0 project image

    LibColors-1.0

    A library to easy coloring strings by hex codes, color tables, class names, color names and more.

    • 44.5K
    • October 27, 2026
  • Broker Everything project image

    Broker Everything

    A collection of modules to display various informations as Broker-buttons on Broker Display AddOns or minimap buttons.

    • 821.0K
    • October 24, 2026
  • CommunityInfo project image

    CommunityInfo

    Display join, leave, online and offline messages like guilds and friends for communities in chat window and adds broker per community for panel addons like titan panel.

    • 6.5K
    • September 26, 2026
  • LibRaces-1.0 project image

    LibRaces-1.0

    Little library to translate localized race names to english race names "Mensch > Human"

    • 13.5K
    • October 27, 2026
  • LibColors-1.0 project image

    LibColors-1.0

    A library to easy coloring strings by hex codes, color tables, class names, color names and more.

    • 44.5K
    • October 27, 2026
  • Broker Everything project image

    Broker Everything

    A collection of modules to display various informations as Broker-buttons on Broker Display AddOns or minimap buttons.

    • 821.0K
    • October 24, 2026
  • CommunityInfo project image

    CommunityInfo

    Display join, leave, online and offline messages like guilds and friends for communities in chat window and adds broker per community for panel addons like titan panel.

    • 6.5K
    • September 26, 2026