timeFromGMT()

Returns the difference between local time and GMT.

Synopsis

int timeFromGMT();

Parameters

Parameter Description
none -

Return value

Difference in time in seconds

Description

Returns the difference in time between local (winter) time and GMT in seconds. The arguments are interpreted as local (winter) time (by daylightsaving = FALSE). The difference to GMT must be added to correct the value.

Example

Reads time in GMT.

main()
{
  time t;
  t=makeTime(1999, 2, 5, 13, 40, 20, 30, FALSE);
  t+=timeFromGMT();
}

Assignment

Time function

Availability

CTRL