Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >

The Time Object


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, and so on. This Time object is distinct from the standard JavaScript Date object. You cannot use Date object properties with a Time object or vice versa.

Note that the Time object differs from the Date object, although they contain similar data. The Time object is for use with the other date and time functions in the Clib object. It has the integer properties listed in Table 5.

Table 5.  Integer Properties of the Time Object
Value for timeInt
Integer Property
tm_sec
Second after the minute (from 0)
tm_min
Minutes after the hour (from 0)
tm_hour
Hour of the day (from 0)
tm_mday
Day of the month (from 1)
tm_mon
Month of the year (from 0)
tm_year
Years since 1900 (from 0)
tm_wday
Days since Sunday (from 0)
tm_yday
Day of the year (from 0)
tm_isdst
Daylight Savings Time flag


 Siebel eScript Language Reference 
 Published: 18 April 2003