Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QCoreApplication>
- #include <QDateTime>
- #include <QDebug>
- int main(int argc, char *argv[])
- {
- QCoreApplication a(argc, argv);
- QDateTime dt=QDateTime::currentDateTime();
- qDebug()<< dt;
- QDateTime add_dt=QDateTime::currentDateTime().addDays(5);
- qDebug()<<add_dt;
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement