Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qv4dateobject_p.h>
Static Public Member Functions | |
static double | getThisDate (ExecutionEngine *v4, const Value *thisObject) |
static ReturnedValue | method_parse (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_UTC (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_now (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toDateString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toTimeString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toLocaleString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toLocaleDateString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toLocaleTimeString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_valueOf (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getTime (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getDay (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCDay (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getUTCMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_getTimezoneOffset (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setTime (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_setUTCFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toUTCString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toISOString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toJSON (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_symbolToPrimitive (const FunctionObject *f, const Value *thisObject, const Value *, int) |
static void | timezoneUpdated (ExecutionEngine *e) |
Static Public Member Functions inherited from QV4::Object | |
static ReturnedValue | getValue (const Value *thisObject, const Value &v, PropertyAttributes attrs) |
static ReturnedValue | getValueAccessor (const Value *thisObject, const Value &v, PropertyAttributes attrs) |
static ReturnedValue | checkedInstanceOf (ExecutionEngine *engine, const FunctionObject *typeObject, const Value &var) |
Static Public Member Functions inherited from QV4::Value | |
static constexpr Value | fromStaticValue (StaticValue staticValue) |
static Value | fromHeapObject (HeapBasePtr m) |
static bool | toBooleanImpl (Value val) |
static double | toNumberImpl (Value v) |
static Heap::String * | toString (ExecutionEngine *e, Value val) |
static Heap::Object * | toObject (ExecutionEngine *e, Value val) |
static constexpr Value | fromReturnedValue (ReturnedValue val) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
static constexpr Value | emptyValue () |
static constexpr Value | fromBoolean (bool b) |
static constexpr Value | fromInt32 (int i) |
static constexpr Value | undefinedValue () |
static constexpr Value | nullValue () |
static Value | fromDouble (double d) |
static Value | fromUInt32 (uint i) |
Static Public Member Functions inherited from QV4::StaticValue | |
static int | valueOffset () |
static int | tagOffset () |
static constexpr quint64 | tagValue (quint32 tag, quint32 value) |
static constexpr quint64 | tagBitMask (TagBit bit) |
static bool | integerCompatible (StaticValue a, StaticValue b) |
static bool | bothDouble (StaticValue a, StaticValue b) |
static QV4_NEARLY_ALWAYS_INLINE bool | isInt32 (double d) |
static constexpr StaticValue | fromReturnedValue (ReturnedValue val) |
static constexpr StaticValue | emptyValue () |
static constexpr StaticValue | fromBoolean (bool b) |
static constexpr StaticValue | fromInt32 (int i) |
static constexpr StaticValue | undefinedValue () |
static constexpr StaticValue | nullValue () |
static StaticValue | fromDouble (double d) |
static StaticValue | fromUInt32 (uint i) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
Definition at line 232 of file qv4dateobject_p.h.
|
static |
Definition at line 897 of file qv4dateobject.cpp.
References QV4::Value::as(), and QV4::ExecutionEngine::throwTypeError().
void DatePrototype::init | ( | ExecutionEngine * | engine, |
Object * | ctor ) |
Definition at line 824 of file qv4dateobject.cpp.
References QV4::Attr_ReadOnly_ButConfigurable, QV4::FunctionObject::createBuiltinFunction(), engine, QV4::Value::fromInt32(), getLocalTZA(), o, and QStringLiteral.
|
static |
Definition at line 1054 of file qv4dateobject.cpp.
References DateFromTime(), LocalTime(), and QV4::ExecutionEngine::localTZA.
|
static |
Definition at line 1072 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and WeekDay().
|
static |
Definition at line 1018 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and YearFromTime().
|
static |
Definition at line 1090 of file qv4dateobject.cpp.
References HourFromTime(), LocalTime(), and QV4::ExecutionEngine::localTZA.
|
static |
Definition at line 1144 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and msFromTime().
|
static |
Definition at line 1108 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and MinFromTime().
|
static |
Definition at line 1036 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and MonthFromTime().
|
static |
Definition at line 1126 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and SecFromTime().
|
static |
Definition at line 1002 of file qv4dateobject.cpp.
|
static |
Definition at line 1162 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and msPerMinute.
|
static |
Definition at line 1063 of file qv4dateobject.cpp.
References DateFromTime().
|
static |
Definition at line 1081 of file qv4dateobject.cpp.
References WeekDay().
|
static |
Definition at line 1027 of file qv4dateobject.cpp.
References YearFromTime().
|
static |
Definition at line 1099 of file qv4dateobject.cpp.
References HourFromTime().
|
static |
Definition at line 1153 of file qv4dateobject.cpp.
References msFromTime().
|
static |
Definition at line 1117 of file qv4dateobject.cpp.
References MinFromTime().
|
static |
Definition at line 1045 of file qv4dateobject.cpp.
References MonthFromTime().
|
static |
Definition at line 1135 of file qv4dateobject.cpp.
References SecFromTime().
|
static |
Definition at line 1009 of file qv4dateobject.cpp.
References LocalTime(), QV4::ExecutionEngine::localTZA, and YearFromTime().
|
static |
Definition at line 948 of file qv4dateobject.cpp.
References currentTime().
|
static |
Definition at line 905 of file qv4dateobject.cpp.
References ParseString(), and qt_qnan().
|
static |
Definition at line 1339 of file qv4dateobject.cpp.
References QV4::Value::as(), date, QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), UTC(), and YearFromTime().
|
static |
Definition at line 1453 of file qv4dateobject.cpp.
References QV4::Value::as(), date, DateFromTime(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().
|
static |
Definition at line 1295 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().
|
static |
Definition at line 1185 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().
|
static |
Definition at line 1255 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().
|
static |
Definition at line 1375 of file qv4dateobject.cpp.
References QV4::Value::as(), date, DateFromTime(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), UTC(), and YearFromTime().
|
static |
Definition at line 1219 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().
|
static |
Definition at line 1171 of file qv4dateobject.cpp.
References QV4::Value::as(), QV4::EngineBase::hasException, qt_qnan(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), and QV4::Encode::undefined().
|
static |
Definition at line 1357 of file qv4dateobject.cpp.
References QV4::Value::as(), date, QV4::EngineBase::hasException, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), and YearFromTime().
|
static |
Definition at line 1437 of file qv4dateobject.cpp.
References QV4::Value::as(), date, DateFromTime(), MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), and QV4::Value::toNumber().
|
static |
Definition at line 1322 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().
|
static |
Definition at line 1202 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), MakeDate(), MakeTime(), MinFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), and QV4::Encode::undefined().
|
static |
Definition at line 1279 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), HourFromTime(), MakeDate(), MakeTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().
|
static |
Definition at line 1396 of file qv4dateobject.cpp.
References QV4::Value::as(), date, DateFromTime(), MakeDate(), MakeDay(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), and YearFromTime().
|
static |
Definition at line 1240 of file qv4dateobject.cpp.
References QV4::Value::as(), Day(), HourFromTime(), MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().
|
static |
Definition at line 1411 of file qv4dateobject.cpp.
References QV4::Value::as(), DateFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toInteger(), QV4::Value::toNumber(), and UTC().
|
static |
Definition at line 1565 of file qv4dateobject.cpp.
References hint(), QV4::ExecutionEngine::id_default(), QV4::ExecutionEngine::id_number(), QV4::ExecutionEngine::id_string(), QV4::Value::isObject(), QV4::Value::isString(), QV4::RuntimeHelpers::ordinaryToPrimitive(), QV4::Value::stringValue(), and QV4::ExecutionEngine::throwTypeError().
|
static |
Definition at line 960 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::newString(), and ToDateString().
|
static |
Definition at line 1503 of file qv4dateobject.cpp.
References addZeroPrefixedInt(), QV4::Value::as(), DateFromTime(), HourFromTime(), MinFromTime(), MonthFromTime(), msFromTime(), QV4::ExecutionEngine::newString(), qAbs(), RETURN_RESULT, SecFromTime(), QV4::ExecutionEngine::throwRangeError(), QV4::ExecutionEngine::throwTypeError(), and YearFromTime().
|
static |
Definition at line 1542 of file qv4dateobject.cpp.
References QV4::Value::as(), QV4::checkedResult(), QV4::EngineBase::hasException, QV4::ExecutionEngine::newString(), QV4::Encode::null(), QV4::NUMBER_HINT, QStringLiteral, QV4::ExecutionEngine::throwTypeError(), QV4::Value::toObject(), QV4::RuntimeHelpers::toPrimitive(), and QV4::Encode::undefined().
|
static |
Definition at line 981 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::newString(), and ToLocaleDateString().
|
static |
Definition at line 974 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::newString(), and ToLocaleString().
|
static |
Definition at line 988 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::newString(), and ToLocaleTimeString().
|
static |
Definition at line 953 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::localTZA, QV4::ExecutionEngine::newString(), and ToString().
|
static |
Definition at line 967 of file qv4dateobject.cpp.
References QV4::ExecutionEngine::newString(), and ToTimeString().
|
static |
Definition at line 1479 of file qv4dateobject.cpp.
References QV4::Value::as(), QV4::ExecutionEngine::newString(), QV4::ExecutionEngine::throwTypeError(), and ToUTCString().
|
static |
Definition at line 913 of file qv4dateobject.cpp.
References QV4::EngineBase::hasException, MakeDate(), MakeDay(), MakeTime(), qIsNaN(), qQNaN(), TimeClip(), QV4::Value::toInteger(), QV4::Value::toNumber(), and QV4::Encode::undefined().
|
static |
Definition at line 995 of file qv4dateobject.cpp.
|
static |
Definition at line 1581 of file qv4dateobject.cpp.
References getLocalTZA(), and QV4::ExecutionEngine::localTZA.