Changeset 68651 in webkit for trunk/JavaScriptCore/qt/api/qscriptvalue.cpp
- Timestamp:
- Sep 29, 2010, 9:31:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/qt/api/qscriptvalue.cpp
r62921 r68651 322 322 { 323 323 return d_ptr->isArray(); 324 } 325 326 /*! 327 Returns true if this QScriptValue is an object of the Date class; 328 otherwise returns false. 329 330 \sa QScriptEngine::newDate() 331 */ 332 bool QScriptValue::isDate() const 333 { 334 return d_ptr->isDate(); 324 335 } 325 336 … … 486 497 { 487 498 return QScriptValuePrivate::get(d_ptr->toObject()); 499 } 500 501 /*! 502 Returns a QDateTime representation of this value, in local time. 503 If this QScriptValue is not a date, or the value of the date is 504 NaN (Not-a-Number), an invalid QDateTime is returned. 505 506 \sa isDate() 507 */ 508 QDateTime QScriptValue::toDateTime() const 509 { 510 return d_ptr->toDateTime(); 488 511 } 489 512
Note:
See TracChangeset
for help on using the changeset viewer.