Module:Time/doc

From IdleOn MMO Wiki
< Module:Time
Revision as of 09:56, 18 May 2024 by Nads (talk | contribs) (Created page with "'''Warning''': This module is still a work in progress. The '''Time''' module is a utility module which provides many functions for easily working with time. The ''Instant'' class encapsulates a specific point in time, and the ''Duration'' class encapsulates a length of time with no particular point. == Including the Module == To use the Time module, it must first be included at the top of the module that wishes to use it. <syntaxhighlight lang="lua" line> local Time...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Time

Warning: This module is still a work in progress.

The Time module is a utility module which provides many functions for easily working with time. The Instant class encapsulates a specific point in time, and the Duration class encapsulates a length of time with no particular point.

Including the Module

To use the Time module, it must first be included at the top of the module that wishes to use it.

local Time = require('Module:Time')