]> git.saurik.com Git - apple/libc.git/blobdiff - stdtime/FreeBSD/ctime.3
Libc-1353.100.2.tar.gz
[apple/libc.git] / stdtime / FreeBSD / ctime.3
index 1cd4fcd86167c148fe61bb396e1ffca37989bdf1..65dd91f36f2666f2e8b6a5364cc909a7efed4dd3 100644 (file)
@@ -44,7 +44,8 @@
 .Nm localtime ,
 .Nm localtime_r ,
 .Nm mktime ,
 .Nm localtime ,
 .Nm localtime_r ,
 .Nm mktime ,
-.Nm timegm
+.Nm timegm ,
+.Nm timelocal
 .Nd transform binary date and time values
 .Sh LIBRARY
 .Lb libc
 .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"
 .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 ,
 .Sh DESCRIPTION
 The functions
 .Fn ctime ,
@@ -204,6 +207,16 @@ function interprets the input structure
 as representing Universal Coordinated Time
 .Pq Tn UTC .
 .Pp
 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
 The original values of the
 .Fa tm_wday
 and