You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
269 B
C
17 lines
269 B
C
|
5 years ago
|
#ifndef DATEHELPER_H
|
||
|
|
#define DATEHELPER_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
|
||
|
|
class DateHelper : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit DateHelper(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
Q_INVOKABLE static QString friendlyTime(const QDateTime &time);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // DATEHELPER_H
|