0
我有日期线数字,我如何将这些数字转换为qml中的时间字符串?这是我所尝试过的,但得到了错误,committedDate是int数,它持有从纪元开始的毫秒数。将QML中的dateline数字转换为时间字符串
Text {
id: timeText
anchors.centerIn: parent
text: Date(committedDate).toTimeString()
color: "white"
}
误差
qrc:/Conversation.qml:1940: TypeError: Property 'toTimeString' of object Sun Dec 25 11:08:45 2016 GMT+0330 is not a function