org.xwt.js
Class Date

java.lang.Object
  extended byorg.xwt.js.JS
      extended byorg.xwt.js.JS.Obj
          extended byorg.xwt.js.Date

public class Date
extends JS.Obj

This class implements the Date native object. See ECMA 15.9.


Nested Class Summary
 
Nested classes inherited from class org.xwt.js.JS
JS.Array, JS.Callable, JS.Context, JS.Exn, JS.GlobalScope, JS.Graft, JS.Obj, JS.Scope, JS.TailCall
 
Constructor Summary
Date()
           
Date(JS.Array args_)
           
 
Method Summary
 java.lang.Object callMethod(java.lang.Object name, JS.Array args_, boolean checkOnly)
           
 java.lang.String coerceToString()
           
static double date_msecFromDate(double year, double mon, double mday, double hour, double min, double sec, double msec)
           
protected  java.lang.String getIdName(int id)
           
 long getRawTime()
           
static double internalUTC(double t)
           
 double jsFunction_setTime(double time)
           
protected  int mapNameToId(java.lang.String s)
           
 
Methods inherited from class org.xwt.js.JS.Obj
get, get, keys, put, put2, setSeal
 
Methods inherited from class org.xwt.js.JS
coerceToBoolean, coerceToNumber, parse, toBoolean, toDouble, toInt, toLong, toNumber, toString, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date

public Date()

Date

public Date(JS.Array args_)
Method Detail

coerceToString

public java.lang.String coerceToString()
Overrides:
coerceToString in class JS

callMethod

public java.lang.Object callMethod(java.lang.Object name,
                                   JS.Array args_,
                                   boolean checkOnly)
Overrides:
callMethod in class JS

internalUTC

public static double internalUTC(double t)

date_msecFromDate

public static double date_msecFromDate(double year,
                                       double mon,
                                       double mday,
                                       double hour,
                                       double min,
                                       double sec,
                                       double msec)

jsFunction_setTime

public double jsFunction_setTime(double time)

getIdName

protected java.lang.String getIdName(int id)

mapNameToId

protected int mapNameToId(java.lang.String s)

getRawTime

public long getRawTime()