Hi,

Recently it came to my attention that date(1) on solaris
doesn't quite work the way I expected it to. Specifically,
the result of `date +%s' was unexpected.

I soon came to the realization that OpenBSD's man page for
date(1) lies a bit about POSIX compliance and omits the
+format conversion specifier "extensions" it supports;
namely:

        %F %G %g %k %l %R %v %z

Also, OpenBSD's date(1) supports a far more sane format for
setting system time/date than "mmddhhmm[[cc]yy]".

Because it seems it would be messy to document all this, it
just might be simpler to state that only the -u option and
POSIX defined +format conversion specifiers are supported;
everything else being OpenBSD extensions.

Thoughts?
--patrick


Index: date.1
===================================================================
RCS file: /cvs/obsd/src/bin/date/date.1,v
retrieving revision 1.56
diff -u -p date.1
--- date.1      11 Mar 2011 21:36:09 -0000      1.56
+++ date.1      2 Jun 2011 07:12:32 -0000
@@ -243,7 +243,11 @@ fails.
 .Sh STANDARDS
 The
 .Nm
-utility is compliant with the
+utility supports
+.Op Fl u
+and 
+.Op Cm + Ns Ar format
+conversion specifiers defined in
 .St -p1003.1-2008
 specification.
 .Pp

Reply via email to