Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Time Methods > Clib.mktime() MethodThis method converts a Time object to the time format returned by Clib.time(). SyntaxReturnsAn integer representation of the value stored in Time, or -1 if Time cannot be converted or represented. UsageUndefined elements of Time are set to 0 before the conversion. This function is the inverse of Clib.localtime(), which converts from a time integer to a Time object. For details on the Time object, see The Time Object. ExampleThis example shows a use of Clib.mktime in order to format a time so that it can be used with Clib.difftime. // create time object and set time to midnight: The script produces a trace output similar to this: COMMENT,Seconds since midnight: 59627 See Clib.asctime() Method for an example that shows the difference between asctime() and mktime() formatting. See AlsoClib.asctime() Method |
Siebel eScript Language Reference |