hour()

The method returns the hour of a time.

Synopsis

int time.hour());

Description

The method returns the hour of a time (0-23).

Return Value

The hour of a time.

Example

main()
{
  time t = getCurrentTime();
  DebugN("The hour of the time:", t.hour());
}

Assignment

Time function

Availability

UI,CTRL