Class Index | File Index

Classes


Built-In Namespace Date

Field Summary
Field Attributes Field Name and Description
<static>  
Method Summary
Method Attributes Method Name and Description
 
Adjust a localized date of the current Date object to a newly-specified timezone.
 
Converts a JavaScript Date object into a Java Date object
 
toJSON(key)
Field Detail
<static> Date.CultureInfo

Defined in: date.js.
Method Detail
{Boolean} adjustTimezone()
Adjust a localized date of the current Date object to a newly-specified timezone. By default, dates created in Javascript are created in the local timezone, e.g. if I say "create a Date object at time 3PM", what I will get is a Date that is set to 3PM for the local timezone that this machine is running in. If our event source sends us the timezone, or if it is set on the Event Source ESM object, then we want to adjust for the specified timezone. This routine uses the Java TimeZone object, so any TZ specifiers supported by that method will be supported by this routine. This method uses the timezone specified in the rec.s_TimeZone variable. This variable is set by current Connectors if configured. If the variable is not set, this code assumes that the TZ of the source device is local time, and does not change the timezone of this Date object. If your device reports in GMT, you must set the rec.s_TimeZone variable to "UTC".
Defined in: utils.js.
Returns:
{Boolean} Specified whether a timezone adjustment was made.

{Java Date} toJava()
Converts a JavaScript Date object into a Java Date object
Defined in: utils.js.
Returns:
{Java Date} Java Date object

toJSON(key)

Defined in: json2.js.
Parameters:
key

©2008
Documentation generated by JsDoc Toolkit 2.0.2 on Thu Oct 07 2010 07:23:17 GMT-0400 (EDT)