TIME 2
NAME
time - time in seconds since epoch
SYNOPSIS
#include <u.h> #include <libc.h>
long time(long *tp)/* Alef only */
int time();
DESCRIPTIONTime returns the number of seconds since the epoch 00:00:00 GMT, Jan. 1, 1970. If tp is not zero then * tp is also set to the answer.This function works by reading /dev/time , opening that file when time is first called.
AlefIn Alef, time does not take an argument.SOURCE/sys/src/libc/9sys/time.cSEE ALSOcons (3)DIAGNOSTICSSets errstr .