|
NAMEtimespec_get —
get current calendar time
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <time.h>
int
DESCRIPTIONThetimespec_get function sets the interval pointed to
by ts to hold the current calendar time based on the
specified time base in base.
The base RETURN VALUESThetimespec_get function returns the passed value of
base if successful, otherwise 0
on failure.
SEE ALSOclock_gettime(2), gettimeofday(2), time(3)STANDARDSThetimespec_get function with a
base of TIME_UTC conforms to
ISO/IEC 9899:2011 (“ISO C11”).
HISTORYThis interface first appeared in FreeBSD 12.AUTHORSKamil Rytarowski <kamil@NetBSD.org>Warner Losh <imp@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |