Siebel eScript Language Reference > C Language Library Reference > Clib Date and Time Methods >
Overview of Clib Date and Time Methods
The Clib time object measures time in the following ways:
- As an integral value of the number of seconds that have occurred since January 1, 1970.
- As a time object that includes properties for the day, month, year, and so on. This time object is distinct from the standard JavaScript date object.
Note the following:
- The time object is for use with the date and time functions in the Clib object.
- You cannot write code that uses a date object property with a time object or a time object property with a date object.
- Although the time object is different than the date object, these objects contain similar data.
Table 173 lists the integer properties for the timeInt argument of the Clib time object.
Table 173. Integer Properties of the timeInt Argument of the Clib Time Object
Value for the timeInt Argument |
|
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 |
Flag for Daylight Savings Time. |
|