Module Name: src Committed By: tron Date: Sat Aug 28 13:42:08 UTC 2010
Modified Files: src/lib/libutil: parsedate.3 Log Message: Mention recent enhancement and not that this function is neither re-entrant nor thread-safe. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libutil/parsedate.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libutil/parsedate.3 diff -u src/lib/libutil/parsedate.3:1.6 src/lib/libutil/parsedate.3:1.7 --- src/lib/libutil/parsedate.3:1.6 Tue May 4 06:41:27 2010 +++ src/lib/libutil/parsedate.3 Sat Aug 28 13:42:07 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: parsedate.3,v 1.6 2010/05/04 06:41:27 jruoho Exp $ +.\" $NetBSD: parsedate.3,v 1.7 2010/08/28 13:42:07 tron Exp $ .\" .\" Copyright (c) 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 4, 2010 +.Dd Aug 28, 2010 .Dt PARSEDATE 3 .Os .Sh NAME @@ -228,6 +228,12 @@ .It next sunday .It +2 years .El +.Pp +Seconds since epoch (also known as UNIX time) are also supported: +.Bl -tag -compact -width "@735275209" +.It @735275209 +Tue Apr 20 03:06:49 UTC 1993 +.El .Sh RETURN VALUES .Fn parsedate returns the number of seconds passed since the Epoch, or @@ -236,6 +242,8 @@ .Sh SEE ALSO .Xr date 1 , .Xr eeprom 8 +.Sh BUGS +The parsedate function is not re-entrant or thread-safe. .Sh HISTORY The parser used in .Fn parsedate