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

Date and Time Functions


The following is a list of date and time functions.

Method
Function
Clib.asctime()
Converts a date-time to an ASCII string
Clib.clock()
Gets the processor time
Clib.ctime()
Converts a date-time to an ASCII string
Clib.difftime()
Computes the difference between two times
dateVar.getDate()
Returns the day of the month
dateVar.getDay()
Returns the day of the week
dateVar.getFullYear()
Returns the year as a four-digit number
dateVar.getHours()
Returns the hour
dateVar.getMilliseconds()
Returns the millisecond
dateVar.getMinutes()
Returns the minute
dateVar.getMonth()
Returns the month
dateVar.getSeconds()
Returns the second
dateVar.getTime()
Returns the date-time, in milliseconds, of a Date object
dateVar.getTimezoneOffset()
Returns the difference, in minutes, from GMT
dateVar.getUTCDate()
Returns the UTC day of the month
dateVar.getUTCDay()
Returns the UTC day of the week
dateVar.getUTCFullYear()
Returns the UTC year as a four-digit number
dateVar.getUTCHours()
Returns the UTC hour
dateVar.getUTCMilliseconds()
Returns the UTC millisecond
dateVar.getUTCMinutes()
Returns the UTC minute
Clib.gmtime()
Converts a date-time to GMT
Clib.localtime()
Converts a date-time to a structure
Clib.mktime()
Converts a time structure to calendar time
Clib.strftime()
Writes a formatted date-time to a string
Clib.time()
Gets the current time
dateVar.getUTCMonth()
Returns the UTC month
dateVar.getUTCSeconds()
Returns the UTC second
dateVar.getYear()
Returns the year as a two-digit number
dateVar.setDate()
Sets the day of the month
dateVar.setFullYear()
Sets the year as a four-digit number
dateVar.setHours()
Sets the hour
dateVar.setMilliseconds()
Sets the millisecond
dateVar.setMinutes()
Sets the minute
dateVar.setMonth()
Sets the month
dateVar.setSeconds()
Sets the second
dateVar.setTime()
Sets the date-time in a Date object, in milliseconds
dateVar.setUTCDate()
Sets the UTC day of the month
dateVar.setUTCFullYear()
Sets the UTC year as a four-digit number
dateVar.setUTCHours()
Sets the UTC hour
dateVar.setUTCMilliseconds()
Sets the UTC millisecond
dateVar.setUTCMinutes()
Sets the UTC minute
dateVar.setUTCMonth()
Sets the UTC month
dateVar.setUTCSeconds()
Sets the UTC second
dateVar.setYear()
Sets the year as a two-digit number
dateVar.toGMTString()
Converts a Date object to a string
dateVar.toLocaleString()
Returns a string for local date and time
Date.toSystem()
Converts a Date object to a system time
dateVar.toUTCString()
Returns a string that represents the UTC date
Date.fromSystem()
Converts system time to Date object time
Date.parse()
Converts a Date string to a Date object
dateVar.UTC()
Returns the date-time, in milliseconds from January 1, 1970, of its parameters


 Siebel eScript Language Reference 
 Published: 18 April 2003