forked from qt-creator/qt-creator
qmljs: adding getDay and getUTCDay to date object
Change-Id: Ib7a15a7e3803656b2091e25a12a7fd13000553ab Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -365,6 +365,8 @@ SharedValueOwner::SharedValueOwner(SharedValueOwnerKind kind)
|
||||
addFunction(_datePrototype, QLatin1String("getTime"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getFullYear"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getUTCFullYear"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getDay"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getUTCDay"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getMonth"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getUTCMonth"), numberValue(), 0);
|
||||
addFunction(_datePrototype, QLatin1String("getDate"), numberValue(), 0);
|
||||
|
||||
Reference in New Issue
Block a user