period()
Returns the seconds of a time t that have elapsed since 1.1.1970, 00:00 (UTC).
Synopsis
int period(time t);
Parameters
Parameters | Meaning |
---|---|
t | time |
Return value
Seconds since 1.1.1970, 00:00 (UTC) until stated time parameter. In case of an error '-1' will be returned.
Errors
Invalid or no argument
Description
Returns the seconds of a time t that have elapsed since 1.1.1970, 00:00 (UTC).
Example
main()
{
time t;
t=getCurrentTime();
DebugN(period(t)); //number of seconds until now
}
Assignment
Time function
Availability
UI, CTRL