hour()

Returns the hour portion (0 to 23) of a time t.

Synopsis

int hour( time t);

Parameters

Parameters Meaning
t Time

Return value

The function returns the hour of a time.

Error

Description

Returns the hour portion (0 to 23) of a time t.

Example

main()
{
  time t;
  t=makeTime(1999,8,18,13,40);
  DebugN(hour(t)); //13
}

Assignment

Time function

Availability

CTRL