contents   index   previous   next



Routines for date/time

 

Clib.asctime()

Converts data and time to an ASCII string.

Clib.clock()

Gets processor time.

Clib.ctime()

Converts date-time to an ASCII string.

Clib.difftime()

Computes difference between two times.

Clib.gmtime()

Converts data and time to GMT.

Clib.localtime()

Converts date/time to a structure.

Clib.mktime()

Converts time structure to calendar time.

Clib.strftime()

Formatted write of date/time to a string.

Clib.time()

Gets current time.

 

Date getDate()

Returns the day of the month.

Date getDay()

Returns the day of the week.

Date getFullYear()

Returns the year with four digits.

Date getHours()

Returns the hour.

Date getMilliseconds()

Returns the millisecond.

Date getMinutes()

Returns the minute.

Date getMonth()

Returns the month.

Date getSeconds()

Returns the second.

Date getTime()

Returns date/time, milliseconds, in Date object.

Date getTimezoneOffset()

Returns difference, in minutes, from GMT.

Date getUTCDate()

Returns the UTC day of the month.

Date getUTCDay()

Returns the UTC day of the week.

Date getUTCFullYear()

Returns the UTC year with four digits.

Date getUTCHours()

Returns the UTC hour.

Date getUTCMilliseconds()

Returns the UTC millisecond.

Date getUTCMinutes()

Returns the UTC minute.

Date getUTCMonth()

Returns the UTC month.

Date getUTCSeconds()

Returns the UTC second.

Date getYear()

Returns the year with two digits.

Date setDate()

Set day of the month.

Date setFullYear()

Sets the year with four digits.

Date setHours()

Sets the hour.

Date setMilliseconds()

Sets the millisecond.

Date setMinutes()

Sets the minute.

Date setMonth()

Sets the month.

Date setSeconds()

Sets the second.

Date setTime()

Sets date/time, in milliseconds, in Date object.

Date setUTCDate()

Sets the UTC day of the month.

Date setUTCFullYear()

Sets the UTC year with four digits.

Date setUTCHours()

Sets the UTC hour.

Date setUTCMilliseconds()

Sets the UTC millisecond.

Date setUTCMinutes()

Sets the UTC minute.

Date setUTCMonth()

Sets the UTC month.

Date setUTCSeconds()

Sets the UTC second.

Date setYear()

Sets the year with two digits.

Date toDateString()

Returns the date portion of current date as string.

Date toGMTString()

Converts a Date object to a string.

Date toLocaleDateString()

Same as date.toDateString using local time.

Date toLocaleString()

Returns a string for local date and time.

Date toLocaleTimeString()

Same as date.toTimeString using local time.

Date toSystem()

Converts a Date object to a system time.

Date toTimeString()

Returns the time portion of current date as string.

Date 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.

Date.UTC()

Returns date/time, milliseconds, use parameters.

 

datetime.jsh - date and time

 


Routines for diagnostic/error