Logo Search packages:      
Sourcecode: qt4-x11 version File versions

int QTime::hour (  )  const

Returns the hour part (0 to 23) of the time.

See also:
minute(), second(), msec()

Definition at line 1273 of file qdatetime.cpp.

Referenced by QAbstractFormBuilder::createProperty(), fromString(), QDateTimeEdit::stepBy(), QLocale::toString(), and toString().

{
    return ds() / MSECS_PER_HOUR;
}


Generated by  Doxygen 1.6.0   Back to index