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

Clib Get Local Date and Time Method


The Clib Get Local Date and Time method returns a string that includes the date and time, adjusted for the local time zone. It is equivalent to the following code:

Clib.asctime(Clib.localtime(timeInt));

where:

    • timeInt is the date and time that the Clib Get Date and Time method returns.
Format

Clib.ctime(timeInt)

Table 180 describes the arguments for the Clib Get Local Date and Time method.

Table 180. Arguments for the Clib Get Local Date and Time Method
Argument
Description

timeInt

The date and time value that this method returns.

Example

The following example returns the current date and time:

TheApplication().RaiseErrorText(Clib.ctime(Clib.time()));

It returns this date and time in a string that uses the following format:

Day Mon dd hh:mm:ss yyyy

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