month()

Returns the month of a time.

Synopsis

int month(time t );

Parameters

Parameter Description
t time

Return value

Returns the month as a figure.

Error

Description

Returns the month portion (1 ... 12) of a time t.

Example

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

Assignment

Time function

Availability

CTRL