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

Method getNoteDateCreated

filters/remotequery.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120Q_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

Callers

nothing calls this directly

Calls 3

QStringClass · 0.50
isSetMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected