Extracted from Pike v7.3 release 18 at 2002-03-27.
pike.roxen.com
[Top]

Method time()


Method time

int time()
int time(int(1..1) one)
float time(int(2..) t)

Description

This function returns the number of seconds since 1 Jan 1970.

The second syntax does not call the system call time() as often, but is only updated in the backed (when Pike code isn't running).

The third syntax can be used to measure time more preciely than one second. It return how many seconds has passed since t. The precision of this function varies from system to system.

See also

ctime, localtime, mktime, gmtime