aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/negativeyear.qml
blob: e6c857d266a05865a3dc497106b04a4edefc0f50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQuick 2.0
import Qt.test 1.0

Item {
    function check_negative_tostring() {
        return "result: " + new Date(-2000, 0, 1);
    }

    function check_negative_toisostring() {
        // Make that february, to avoid timezone problems
        return "result: " + (new Date(-2000, 1, 1)).toISOString();
    }
}