Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
jsdate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

JSObjectjs_InitDateClass (JSContext *cx, JSObject *obj)
 JS_FRIEND_API (JSObject *) js_NewDateObjectMsec(JSContext *cx
 JS_FRIEND_API (JSBool) js_DateIsValid(JSContext *cx
 JS_FRIEND_API (int) js_DateGetYear(JSContext *cx
 JS_FRIEND_API (void) js_DateSetYear(JSContext *cx
 JS_FRIEND_API (jsdouble) js_DateGetMsecSinceEpoch(JSContext *cx

Variables

JS_BEGIN_EXTERN_C JSClass js_DateClass
 end of ECMA 'support' functions
jsdouble msec_time
int year
int int mon
int int int mday
int int int int hour
int int int int int min
int int int int int int sec
JSObjectobj
JSObject int date
JSObject int hours
JSObject int minutes
JSObject int seconds

Function Documentation

JSObject* js_InitDateClass ( JSContext cx,
JSObject obj 
)

Definition at line 2115 of file jsdate.c.

{
    JSObject *proto;
    jsdouble *proto_date;

    /* set static LocalTZA */
    LocalTZA = -(PRMJ_LocalGMTDifference() * msPerSecond);
    proto = JS_InitClass(cx, obj, NULL, &js_DateClass, Date, MAXARGS,
                         NULL, date_methods, NULL, date_static_methods);
    if (!proto)
        return NULL;

    /* Alias toUTCString with toGMTString.  (ECMA B.2.6) */
    if (!JS_AliasProperty(cx, proto, "toUTCString", "toGMTString"))
        return NULL;

    /* Set the value of the Date.prototype date to NaN */
    proto_date = date_constructor(cx, proto);
    if (!proto_date)
        return NULL;
    *proto_date = *cx->runtime->jsNaN;

    return proto;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 104 of file jsdate.h.

Definition at line 69 of file jsdate.h.

Definition at line 107 of file jsdate.h.

end of ECMA 'support' functions

Definition at line 476 of file jsdate.c.

Definition at line 69 of file jsdate.h.

Definition at line 69 of file jsdate.h.

Definition at line 110 of file jsdate.h.

Definition at line 69 of file jsdate.h.

Definition at line 63 of file jsdate.h.

Definition at line 77 of file jsdate.h.

Definition at line 69 of file jsdate.h.

Definition at line 113 of file jsdate.h.

Definition at line 69 of file jsdate.h.