Siebel eScript Language Reference > Quick Reference: Methods and Properties in Siebel eScript >

Date and Time Methods in Siebel eScript


Table 17 provides a list of date and time methods.

Table 17. Date and Time Methods in Siebel eScript
Method
Purpose

Clib.asctime() Method

Converts a date-time to an ASCII string

Clib.clock() Method

Gets the processor time

Clib.ctime() Method

Converts a date-time to an ASCII string

Clib.difftime() Method

Computes the difference between two times

Clib.gmtime() Method

Converts a date-time to GMT

Clib.localtime() Method

Converts a date-time to a structure

Clib.mktime() Method

Converts a time structure to calendar time

Clib.strftime() Method

Writes a formatted date-time to a string

Clib.time() Method

Gets the current time

Date.fromSystem() Static Method

Converts system time to Date object time

Date.parse() Static Method

Converts a Date string to a Date object

Date.toSystem() Method

Converts a Date object to a system time

Date.UTC() Static Method

Returns the date-time, in milliseconds, from January 1, 1970 of its parameters

getDate() Method

Returns the day of the month

getDay() Method

Returns the day of the week

getFullYear() Method

Returns the year as a four-digit number

getHours() Method

Returns the hour

getMilliseconds() Method

Returns the millisecond

getMinutes() Method

Returns the minute

getMonth() Method

Returns the month

getSeconds() Method

Returns the second

getTime() Method

Returns the date-time, in milliseconds, of a Date object

getTimezoneOffset() Method

Returns the difference, in minutes, from GMT

getUTCDate() Method

Returns the UTC day of the month

getUTCDay() Method

Returns the UTC day of the week

getUTCFullYear() Method

Returns the UTC year as a four-digit number

getUTCHours() Method

Returns the UTC hour

getUTCMilliseconds() Method

Returns the UTC millisecond

getUTCMinutes() Method

Returns the UTC minute

getUTCMonth() Method

Returns the UTC month

getUTCSeconds() Method

Returns the UTC second

getYear() Method

Returns the year as a two-digit number

setDate() Method

Sets the day of the month

setFullYear() Method

Sets the year as a four-digit number

setHours() Method

Sets the hour

setMilliseconds() Method

Sets the millisecond

setMinutes() Method

Sets the minute

setMonth() Method

Sets the month

setSeconds() Method

Sets the second

setTime() Method

Sets the date-time in a Date object, in milliseconds

setUTCDate() Method

Sets the UTC day of the month

setUTCFullYear() Method

Sets the UTC year as a four-digit number

setUTCHours() Method

Sets the UTC hour

setUTCMilliseconds() Method

Sets the UTC millisecond

setUTCMinutes() Method

Sets the UTC minute

setUTCMonth() Method

Sets the UTC month

setUTCSeconds() Method

Sets the UTC second

setYear() Method

Sets the year as a two-digit number

toGMTString() Method

Converts a Date object to a string

toLocaleString() Method and toString() Method

Returns a string representing the date and time of a Date object based on the time zone of the computer running the script

toUTCString() Method

Returns a string that represents the UTC date

Siebel eScript Language Reference Copyright © 2007, Oracle. All rights reserved.