X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/6465356a983ac139f81d3b7913cdb548477c346c..fc56b708803d28b949a9181528bb0da4d25b3b7b:/stdtime/FreeBSD/ctime.3 diff --git a/stdtime/FreeBSD/ctime.3 b/stdtime/FreeBSD/ctime.3 index 1cd4fcd..65dd91f 100644 --- a/stdtime/FreeBSD/ctime.3 +++ b/stdtime/FreeBSD/ctime.3 @@ -44,7 +44,8 @@ .Nm localtime , .Nm localtime_r , .Nm mktime , -.Nm timegm +.Nm timegm , +.Nm timelocal .Nd transform binary date and time values .Sh LIBRARY .Lb libc @@ -73,6 +74,8 @@ .Fn mktime "struct tm *timeptr" .Ft time_t .Fn timegm "struct tm *timeptr" +.Ft time_t +.Fn timelocal "struct tm *timeptr" .Sh DESCRIPTION The functions .Fn ctime , @@ -204,6 +207,16 @@ function interprets the input structure as representing Universal Coordinated Time .Pq Tn UTC . .Pp +The +.Fn timelocal +function is like +.Fn timegm , +but uses the current timezone setting. +This makes +.Fn timelocal +equivalent to +.Fn mktime . +.Pp The original values of the .Fa tm_wday and