Ignore:
Timestamp:
Nov 8, 2009, 6:43:51 PM (16 years ago)
Author:
[email protected]
Message:
  • wtf/DateMath.cpp:

(WTF::parseDateFromNullTerminatedCharacters):
(JSC::gregorianDateTimeToMS):
(JSC::msToGregorianDateTime):
(JSC::parseDateFromNullTerminatedCharacters):

  • wtf/DateMath.h:

(JSC::GregorianDateTime::GregorianDateTime):

Reviewed by NOBODY (speculative snow leopard and windows build fixes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/DateMath.cpp

    r50633 r50634  
    524524
    525525// Odd case where 'exec' is allowed to be 0, to accomodate a caller in WebCore.
    526 double parseDateFromNullTerminatedCharacters(const char* dateString, bool& haveTZ, int& offset)
     526static double parseDateFromNullTerminatedCharacters(const char* dateString, bool& haveTZ, int& offset)
    527527{
    528528    haveTZ = false;
     
    838838    int day = dateToDayInYear(t.year + 1900, t.month, t.monthDay);
    839839    double ms = timeToMS(t.hour, t.minute, t.second, milliSeconds);
    840     double result = (day * msPerDay) + ms;
     840    double result = (day * WTF::msPerDay) + ms;
    841841
    842842    if (!inputIsUTC) { // convert to UTC
     
    870870    tm.year     =  year - 1900;
    871871    tm.isDST    =  dstOff != 0.0;
    872     tm.utcOffset = static_cast<long>((dstOff + utcOff) / msPerSecond);
     872    tm.utcOffset = static_cast<long>((dstOff + utcOff) / WTF::msPerSecond);
    873873    tm.timeZone = NULL;
    874874}
     
    884884        double utcOffset = getUTCOffset(exec);
    885885        double dstOffset = getDSTOffset(ms, utcOffset);
    886         offset = static_cast<int>((utcOffset + dstOffset) / msPerMinute);
    887     }
    888     return ms - (offset * msPerMinute);
     886        offset = static_cast<int>((utcOffset + dstOffset) / WTF::msPerMinute);
     887    }
     888    return ms - (offset * WTF::msPerMinute);
    889889}
    890890
Note: See TracChangeset for help on using the changeset viewer.