C++ : QTime / QDate
QDate date = QDate::currentDate();
int year = date.year();
int month = date.month();
int day = date.day();
QTime curTime = QTime::currentTime();
int hour = curTime.hour();
int minute = curTime.minute();
int second = curTime.second();
Qml:
var localeTime = new Date().getTime()
console.log('localeTime= ',localeTime)
var localeDate = new Date(localeTime)
console.log('localeDate = ', localeDate)