Advertisement
mario_mos

mARIO

Aug 29th, 2023
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <QCoreApplication>
  2. #include <QDateTime>
  3. #include <QDebug>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7.     QCoreApplication a(argc, argv);
  8.  
  9.  
  10.     QDateTime dt=QDateTime::currentDateTime();
  11.     qDebug()<< dt;
  12.     QDateTime add_dt=QDateTime::currentDateTime().addDays(5);
  13.     qDebug()<<add_dt;
  14.  
  15.  
  16.     return a.exec();
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement