Time Module

From Bebot Wiki 2
Revision as of 22:48, 16 September 2020 by B3b0tUzR (talk | contribs) (Created page with '====== Description of Time module ====== BeBot's time module serves two functions: - Display current UTC/GMT/AO time on request. - Provide a repository for useful time relat…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Description of Time module

BeBot's time module serves two functions:

 - Display current UTC/GMT/AO time on request.
 - Provide a repository for useful time related functions for module developers. 


Functions Provided by Time module
 * ao_year() : returns the current year in AO's timeline. (Current year + 27474)
 * get_DHMS($seconds) : Calculates the days, hours, minutes, and seconds from the provided seconds. Returns an associative array.  
 * format_seconds($totalsec) : Retruns H:M:S