Ignore:
Timestamp:
Feb 6, 2006, 10:11:17 PM (19 years ago)
Author:
ap
Message:

Reviewed by Darin.

  • No tests added - only changed functionality on WIN32, which should be covered by existing tests.
  • kjs/date_object.cpp: (gmtoffset): On WIN32, use the recommended global (_timezone rather than timezone). Updated comments. (KJS::timeZoneOffset): Removed, was basically the same as the above. (KJS::formatTime): Pass an UTC flag - UTC/local cannot be correctly selected on Windows based on struct tm itself. (KJS::DateInstance::getTime): Added. (KJS::DateInstance::getUTCTime): Added. (KJS::millisecondsToTM): Factored out from DateProtoFunc::callAsFunction(). (KJS::DateObjectImp::callAsFunction): Use the new parameter to formatTime(). (KJS::DateProtoFunc::callAsFunction): Updated for the other changes. The code for GetTimezoneOffset was incorrect on WIN32 - _daylight global has nothing to do with daylight savings time being in effect.
  • kjs/date_object.h: Added prototypes for new functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/date_object.h

    r12317 r12624  
    3232    public:
    3333        DateInstance(JSObject *proto);
    34 
     34       
     35        bool getTime(tm &t, int &gmtoffset) const;
     36        bool getUTCTime(tm &t) const;
     37        bool getTime(double &ms, int &gmtoffset) const;
     38        bool getUTCTime(double &ms) const;
     39       
    3540        virtual const ClassInfo *classInfo() const { return &info; }
    3641        static const ClassInfo info;
Note: See TracChangeset for help on using the changeset viewer.