| 118 | |
| 119 | |
| 120 | Q_SCRIPTABLE QString RemoteQuery::getNoteDateCreated() { |
| 121 | qlonglong dt = 0; |
| 122 | if (note->created.isSet()) |
| 123 | dt = note->created; |
| 124 | if (dt==0) |
| 125 | return ""; |
| 126 | QDateTime timestamp; |
| 127 | timestamp.setTime_t(dt/1000); |
| 128 | |
| 129 | if (timestamp.date() == QDate::currentDate()) |
| 130 | return tr("Today") +" " + timestamp.time().toString(Qt::SystemLocaleShortDate); |
| 131 | return timestamp.toString(global.dateFormat + QString(" ") +global.timeFormat); |
| 132 | |
| 133 | } |
| 134 | |
| 135 | |
| 136 |