You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
633 B

6 months ago
#include "tt.h"
#include "ui_tt.h"
#include <QDateTime>
#include <QDebug>
#include <QStringList>
#include <QString>
#include <QTime>
#include <QDate>
tt::tt(QWidget *parent) :
QDialog(parent),
ui(new Ui::tt)
{
ui->setupUi(this);
QDateTime dateTime;
dateTime = QDateTime::currentDateTime();
qDebug()<<dateTime;
qDebug() << dateTime.toString("yyyy-MM-dd hh:mm:ss ddd");
ui->label->setText(dateTime.toString("hh:mm"));
ui->label_2->setText(dateTime.toString("yyyy-MM-dd"));
ui->label_3->setText(dateTime.toString("dddd"));
}
tt::~tt()
{
delete ui;
}
void tt::on_pushButton_clicked()
{
}