quarter()

Returns the quarter portion of a time.

Synopsis

int quarter( time t );

Parameters

Parameter Description
t time

Return value

Error

Invalid or missing arguments

Description

Returns the quarter portion (1 to 4) of a time t.

Example

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

Assignment

Time function

Availability

CTRL