Last active
June 20, 2016 01:26
-
-
Save samueltcsantos/f9ca857c829f0bb9ca761cf276f23470 to your computer and use it in GitHub Desktop.
Qt and QDateTime example I
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
//Lembre de fazer include das classes | |
#include <QDebug> | |
#include <QDateTime> | |
#include <QDate> | |
#include <QTime> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
// QDate(ano, mes, dia) | |
// QTime(hora, minuto, segundo) | |
QDateTime today(QDate(2016, 6,19), QTime(22,10,0)); | |
qDebug() << " today " << today.toString(); | |
return a.exec(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment