MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getNoteDateUpdated

Method getNoteDateUpdated

filters/remotequery.cpp:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103Q_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

Callers

nothing calls this directly

Calls 3

QStringClass · 0.50
isSetMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected