Ignore:
Timestamp:
Oct 13, 2006, 10:31:11 AM (19 years ago)
Author:
kmccullo
Message:

Reviewed by Adam, Geoff, Darin.

Fixed displaying the UTC offset and time zone string, as well as renamed the GregorianDateTime structure and clean up.

  • ChangeLog:
  • kjs/DateMath.cpp: (KJS::getUTCOffset): (KJS::getDSTOffsetSimple): (KJS::gregorianDateTimeToMS): (KJS::msToGregorianDateTime):
  • kjs/DateMath.h: (KJS::GregorianDateTime::GregorianDateTime): (KJS::GregorianDateTime::~GregorianDateTime): (KJS::GregorianDateTime::toTM):
  • kjs/date_object.cpp: (KJS::gmtoffset): (KJS::formatDate): (KJS::formatDateUTCVariant): (KJS::formatTime): (KJS::fillStructuresUsingTimeArgs): (KJS::fillStructuresUsingDateArgs): (KJS::DateInstance::getTime): (KJS::DateInstance::getUTCTime): (KJS::DateProtoFunc::callAsFunction): (KJS::DateObjectImp::construct): (KJS::DateObjectImp::callAsFunction): (KJS::DateObjectFuncImp::callAsFunction): (KJS::parseDate):
  • kjs/date_object.h:
File:
1 edited

Legend:

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

    r17010 r17031  
    2727namespace KJS {
    2828
    29     struct tm;
     29    struct GregorianDateTime;
    3030
    3131    class FunctionPrototype;
     
    3636        DateInstance(JSObject *proto);
    3737       
    38         bool getTime(tm &t, int &gmtoffset) const;
    39         bool getUTCTime(tm &t) const;
    40         bool getTime(double &ms, int &gmtoffset) const;
    41         bool getUTCTime(double &ms) const;
     38        bool getTime(GregorianDateTime&, int& offset) const;
     39        bool getUTCTime(GregorianDateTime&) const;
     40        bool getTime(double& milli, int& offset) const;
     41        bool getUTCTime(double& milli) const;
    4242       
    4343        virtual const ClassInfo *classInfo() const { return &info; }
Note: See TracChangeset for help on using the changeset viewer.