Page MenuHomeFreeBSD

Add time2posix and posix2time to time.h

Authored by eadler on May 23 2018, 5:12 AM.



These are documented in time2posix.3 but the symbols are not actually
visible. Since these are not POSIX hide them behind _BSD_VISIBLE.

Diff Detail

rS FreeBSD src repository - subversion
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Seems pretty sensible to me. These functions are of the same ilk (tzcode inventions) as timelocal (standardized as mktime()) and timegm (standardized as that stupid formula in the POSIX spec).

This revision is now accepted and ready to land.May 23 2018, 7:23 PM
This revision was automatically updated to reflect the committed changes.