Changeset 69833 in webkit for trunk/JavaScriptCore/wtf/DateMath.h


Ignore:
Timestamp:
Oct 14, 2010, 7:45:03 PM (15 years ago)
Author:
[email protected]
Message:

2010-10-14 Nathan Vander Wilt <[email protected]>

Reviewed by Darin Adler.

Added parser for ECMAScript 5 standard date format, so Date.parse can handle RFC 3339 timestamps: https://bugs.webkit.org/show_bug.cgi?id=44632

  • runtime/DateConversion.cpp: (JSC::parseDate):
  • wtf/DateMath.cpp: (WTF::ymdhmsToSeconds): (WTF::parseES5DateFromNullTerminatedCharacters):
  • wtf/DateMath.h:

2010-10-14 Nathan Vander Wilt <[email protected]>

Reviewed by Darin Adler.

Added tests for https://bugs.webkit.org/show_bug.cgi?id=44632

  • fast/js/date-parse-test-expected.txt:
  • fast/js/script-tests/date-parse-test.js: (testDateParseExact):
File:
1 edited

Legend:

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

    r53445 r69833  
    5454int equivalentYearForDST(int year);
    5555
    56 // Not really math related, but this is currently the only shared place to put these. 
     56// Not really math related, but this is currently the only shared place to put these.
     57double parseES5DateFromNullTerminatedCharacters(const char* dateString);
    5758double parseDateFromNullTerminatedCharacters(const char* dateString);
    5859double timeClip(double);
Note: See TracChangeset for help on using the changeset viewer.