LibDailyResetTime (1.0.0)
This is a library for getting information about daily reset times.
This library provides the following four functions:
LibDailyResetTime.GetSecondsUntilNextDailyReset( )
— Returns the number of seconds until the next daily reset
LibDailyResetTime.GetDailyResetTime( previous )
— Returns the Unix-style timestamp of the next daily reset
— If the optional previous parameter is true, returns the timestamp of the previous reset
LibDailyResetTime.GetCurrentServerDate( )
— Returns the year, month, and day of the current server date
— The server date is agnostic to time zones; e.g., if it is 1 AM EST on 2026-03-03, and you are on the NA server, the result will be 2026-03-02, since the new day doesn’t start until 5 AM
LibDailyResetTime.RegisterForCallback( name, callback )
— Registers a function to be called when a daily reset happens
— name is a unique identifier string
— callback is a function; if callback is omitted (nil), the registration associated with name is removed
Why use LibDailyResetTime instead of LibDailyReset? LibDailyResetTime has more and better functionality, is more efficient, and is more robust (it supports console and doesn’t require saved variables in order to work).

