back to index

Time

Inheritance

Object -> Time

Properties

hour - 0..23
min - 0..59
month - 0..11
nanoSec - 0..999999999
sec - 0..59
utime - seconds since 1.Jan.1970
year - 1970..
monthday - 1..31
weekday - 0..6 (sun, mon, tue, wed, thu, fri, sat)
yearday - 1..365

Methods

 
    calc()
int getHour()
int getMin()
int getMonth()
int getNanoSec()
int getSec()
int getUtime()
int getYear()
int getMonthday()
int getWeekday()
int getYearday()
    gmtime() - query current greenwich mean time
    localtime() - query current local time
    now() - deprecated, delegates to localtime()
    setHour(int _hour)
    setMin(int _min)
    setMonth(int _month)
    setNanoSec(int _nanoSec)
    setSec(int _sec)
    setUtime(int _utime)
    setYear(int _year)

Example

testtime.tks

back to index