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)

The following table describes the 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