| 101 | } |
| 102 | |
| 103 | Q_SCRIPTABLE QString RemoteQuery::getNoteDateUpdated() { |
| 104 | qlonglong dt = 0; |
| 105 | if (note->updated.isSet()) |
| 106 | dt = note->updated; |
| 107 | if (dt==0) |
| 108 | return ""; |
| 109 | QDateTime timestamp; |
| 110 | timestamp.setTime_t(dt/1000); |
| 111 | |
| 112 | if (timestamp.date() == QDate::currentDate()) |
| 113 | return tr("Today") +" " + timestamp.time().toString(Qt::SystemLocaleShortDate); |
| 114 | return timestamp.toString(global.dateFormat + QString(" ") +global.timeFormat); |
| 115 | |
| 116 | } |
| 117 | |
| 118 | |
| 119 |