LibClock – Tamriel Standard Time
| | | |
|—–|—–|—–|
| Version: | 1.0.0 | |
| Build for game version: | 100030 | |
How to use
- Link it in your Addon.txt
<code>## DependsOn: LibClockTST</code>
2. Create an instance of the library in your addon
`<span class="backtick"><code>local TST = LibClockTST:Instance()</code></span>
`
- Subscribe to or get the needed data
1. Subscribe `<span class="backtick"><code> local function myTimeAndDateUpdate(time date) d(time, date) end TST:Register("MyAddonHandle", myTimeAndDateUpdate) </code></span>
2. Get
<span class="backtick"><code>local time, date = TST:GetTime(), TST:GetDate()</code></span>
`