Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel eScript Language Reference > C Language Library Reference > Clib Date and Time Methods > Clib Convert Time Object to Integer MethodThe Clib Convert Time Object to Integer method converts a time object to the time format that the Clib Convert Time to Integer method returns. It returns one of the following values:
It sets any element of the Time argument that is not defined to 0 before it performs the conversion. This method is the opposite of the Convert Integer to Local Time method that converts a time integer to a time object. FormatTable 176 describes the arguments for the Clib Convert Time Object to Integer method. ExampleThe following example uses the Clib Convert Time Object to Integer method to format a time so that Siebel eScript can use it with the Clib Get Difference in Seconds method: // create time object and set time to midnight: This example produces the following result: COMMENT,Seconds since midnight: 59627 For an example that describes the difference between the formats that asctime and mktime use, see Clib Get Date and Time Method. Related Topics |
![]() ![]() |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |