year()

Returns the year of a time.

Synopsis

int year(time t);

Parameters

Parameter Description
t Time

Description

Returns the part of the year (1970 ... n) of time t.

Example

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

Assignment

Time function

Availability

CTRL