Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.71 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.71 KB

LibClock - Tamriel Standard Time

Build Status codecov GitHub issues GitHub last commit Run on Repl.it

Version: 1.0.0 Documentation
Build for game version: 100030 Download

How to use

  1. Link it in your Addon.txt

    ## DependsOn: LibClockTST

  2. Create an instance of the library in your addon

    local TST = LibClockTST:Instance()

  3. Subscribe to or get the needed data

    1. Subscribe

      local function myTimeAndDateUpdate(time date)
          d(time, date) 
      end
      TST:Register("MyAddonHandle", myTimeAndDateUpdate)
      
    2. Get

      local time, date = TST:GetTime(), TST:GetDate()