16 lines
269 B
C++
16 lines
269 B
C++
#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
|