contents   index   previous   next



Time functions

 

The Clib object (like the Date object) represents time in two distinct ways: as an integral value (the number of seconds passed since January 1, 1970) and as a Time object with properties for the day, month, year, etc. This Time object is distinct from the standard JavaScript Date object. You cannot use Date object properties with a Time object or vice versa.

 

In the methods below, timeObj represents a variable in the Time object format, while timeInt represents an integral time value.

 


Clib.asctime()

Clib.clock()

Clib.ctime()

Clib.difftime()

Clib.gmtime()

Clib.localtime()

Clib.mktime()

Clib.strftime()

Clib.time()