GNU bug report logs -
#40363
date: add Julian day number output format
Previous Next
To reply to this bug, email your comments to 40363 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#40363
; Package
coreutils
.
(Wed, 01 Apr 2020 01:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 01 Apr 2020 01:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
date(1) should add "Julian day number" or the "Astronomical day
number" (see (info "(emacs) Calendar Systems") output format.
Else for crontab(5) one must do
# Run once per 48 hours (every other day), even across week, month, and year boundaries:
33 22 * * * expr $(date +\%s) / 60 / 60 / 24 \% 2 > /dev/null && echo Check the toilet tissue.
Instead of just
33 22 * * * expr $(date +\%J) \% 2 > /dev/null && echo Check the toilet tissue.
(assuming %J is the Julian day number.)
Currently you have day of the week, day of the month, day of the year,
seconds from second #1. Years from year #1, but no days from "day #1".
This bug report was last modified 4 years and 219 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.