logo

cross-unix-documentation

documentation of similarities and (noteworthy) differencies between Unix systems
commit: 75754bf29b649dd752f58f7d1bdf6f17fa38c849
parent: 26d8e4d884645236feb0825bcabdb7804a7c228b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  3 Mar 2019 07:43:26 +0100

man1x/date.1x: New manpage

Good luck on managing to set the time universally on all unixes with using date(1). :D

Diffstat:

Aman1x/date.1x57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+), 0 deletions(-)

diff --git a/man1x/date.1x b/man1x/date.1x @@ -0,0 +1,57 @@ +.Dd 2019-03-03 +.Dt date 1x +.Os +.Sh PROLOG +This manual page is part of +.Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation" +which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems. To be used as an addition to the POSIX standard. +.Sh NAME +.Nm date +.Nd display or set the date and time +.Sh SYNOPSIS +.Nm +.Op Fl u +.Op Fl Ar d date +.Op Ar +format +.Nm +.Op Fl u +.Op Fl Ar d date +setdate +.Sh DESCRIPTION +.Bl -tag -width Ds +.It u +Use UTC +.It d +Use +.Ar date +instead of now. Absent for POSIX, present for +.Nx , +.Fx , +.Ox , +GNU coreutils, +BusyBox. +.Ss setdate format +The heck they managed to put in their manpage, followed by +.Xr strftime 3 +format with braces. +.Bl -tag +.It POSIX +mmddhhmm[[cc]yy] which makes it %m%d%H%M[[%C]%y] +.It Nx Fx Ox +[[[[[[CC]yy]mm]dd]HH]MM[.SS]] which makes it [[[[[[%C]%y]%m]%d]%H]%M[.%S]] +.It GNU +[MMDDhhmm[[CC]YY][.ss]] which makes it %m%d%H%M[[%C]%y][.%S] +.It BusyBox +Recognized formats: +hh:mm[:ss] +[YYYY.]MM.DD-hh:mm[:ss] +YYYY-MM-DD hh:mm[:ss] +[[[[[YY]YY]MM]DD]hh]mm[.ss] +.Sh SOURCE +.Nx 8.0 , +.Fx 12.0 , +.Ox 6.4 , +GNU coreutils 8.30, +BusyBox 1.30.1 +.Sh AUTHORS +.An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me