*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: timespec_get | Section: 3 | Source: OpenBSD | File: timespec_get.3
TIMESPEC_GET(3) FreeBSD Library Functions Manual TIMESPEC_GET(3) NAME timespec_get - get current calendar time SYNOPSIS #include <time.h> int timespec_get(struct timespec *ts, int base); DESCRIPTION The timespec_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 TIME_UTC returns the time since the Epoch. This time is expressed in seconds and nanoseconds since midnight (0 hour), January 1, 1970. In OpenBSD, this corresponds to CLOCK_REALTIME. RETURN VALUES The timespec_get function returns the passed value of base if successful, otherwise 0 on failure. SEE ALSO clock_gettime(2), gettimeofday(2), time(3) STANDARDS The timespec_get function with a base of TIME_UTC conforms to ISO/IEC 9899:2011 ("ISO C11"). HISTORY The timespec_get() function was ported from NetBSD and first appeared in OpenBSD 6.5. FreeBSD 14.1-RELEASE-p8 October 31, 2018 FreeBSD 14.1-RELEASE-p8

Navigation Options