Exemplo n.º 1
0
tstring DateTime::toString() const
{
	// "2005-12-26T24:59:59" sample format
	tstring time = toTimeString( _T( "HH':'mm':'ss" ) );
	tstring date = toDateString( _T( "yyyy'-'MM'-'dd" ) );
	return date + _T( "T" ) + time;
}
Exemplo n.º 2
0
QMessageBox * EstimationReporter::createTimeMessage(const Workflow::EstimationResult &er) {
    QMessageBox *result = new QMessageBox(
        QMessageBox::Information,
        QObject::tr("Workflow Estimation"),
        QObject::tr("Approximate estimation time of the workflow run is ") + toTimeString(er.timeSec) + ".",
        QMessageBox::Close);
    return result;
}
Exemplo n.º 3
0
std::string cGameDate::toString( eDateFormat format )
{
	return toDateString( format ) + dateTimeSeparator + toTimeString();
}