Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Mention recent enhancement and not that this fun...
details: https://anonhg.NetBSD.org/src/rev/4b08e1f763ce
branches: trunk
changeset: 757414:4b08e1f763ce
user: tron <tron%NetBSD.org@localhost>
date: Sat Aug 28 13:42:07 2010 +0000
description:
Mention recent enhancement and not that this function is neither
re-entrant nor thread-safe.
diffstat:
lib/libutil/parsedate.3 | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 0d817f51fd2e -r 4b08e1f763ce lib/libutil/parsedate.3
--- a/lib/libutil/parsedate.3 Sat Aug 28 13:02:32 2010 +0000
+++ b/lib/libutil/parsedate.3 Sat Aug 28 13:42:07 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index