Siebel eScript Language Reference > C Language Library Reference > Clib Date and Time Methods >

Clib Convert Integer to GMT Method


The Clib Convert Integer to GMT method uses the integer value that the Clib Convert Time to Integer method returns and converts it to a time object that includes the current date and time expressed as Greenwich mean time (GMT).

It is recommended that you use the Clib Convert Integer to GMT method only if you cannot use the equivalent standard JavaScript method. Note the following code:

var now = Clib.asctime(Clib.gmtime(Clib.time())) + "GMT";

This code is exactly equivalent to the following standard JavaScript code:

var aDate = new Date;
var now = aDate.toGMTString()

Format

Clib.gmtime(timeInt)

This method uses the same arguments as the Clib Get Date and Time method. For more information, see Table 177.

Example

The following example returns the current GMT date and time:

TheApplication().RaiseErrorText(Clib.asctime(Clib.gmtime(Clib.time())));

It returns this value as a string that uses the following format:

Day Mon dd hh:mm:ss yyyy:

Related Topics

For more information, see the following topics:

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.