Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

An engineer is someone who does list processing in FORTRAN.


devel / comp.unix.bsd.freebsd.misc / Re: date command is great but could use improvements

SubjectAuthor
* date command is great but could use improvementsDavid Chmelik
`- Re: date command is great but could use improvementsJohn Levine

1
date command is great but could use improvements

<t694h1$br4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=207&group=comp.unix.bsd.freebsd.misc#207

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dchme...@gmail.com (David Chmelik)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: date command is great but could use improvements
Date: Fri, 20 May 2022 22:25:37 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <t694h1$br4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 May 2022 22:25:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="93980e0953e4fdca3e9dae18cb7f3335";
logging-data="12132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZFeYYEKmyuKHqX5pePdF8G3vSaD0llLI="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:/hlyPdD6HMwhLASBuxO1sjAtZ0I=
 by: David Chmelik - Fri, 20 May 2022 22:25 UTC

I use date command formats to detail my XFCE system-tray clock. However,
weekdays are 0 to 6. I'd like to be able to numbers them 1 to 7. No
programmer/sysadmin/scientist/professor who uses UNIX[-based] operating
systems ever said 'zeroth day' to me. Even though I've programmed since
1993, if my clock said day 0, then I know it's Sunday, but for all after
I'd think it's day average users think/numerate, and might miss things I
have to do. Majority (almost 97+% non-programmers) uses PCs now, with
most popular ones being inspired/cloned from UNIX, so date command should
have options for average users.

Date sets days in month, months & civil time from 1: why not weekdays?

Other UNIX-like date commands can count weeks in year, 1 to 53 (sometimes
there are 53, not in full,) quarters/seasons in year, and have option
Monday starts week (Europe, etc.)

The old European calendar (still in some use) also counts days of the
year, 1 to 365 or 366.

Another British Isles time unit is fortnight: 14 days (which I like and
of course has week 1 & 2.)

Re: date command is great but could use improvements

<t69gl3$15qu$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=208&group=comp.unix.bsd.freebsd.misc#208

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: date command is great but could use improvements
Date: Sat, 21 May 2022 01:52:35 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <t69gl3$15qu$1@gal.iecc.com>
References: <t694h1$br4$1@dont-email.me>
Injection-Date: Sat, 21 May 2022 01:52:35 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="38750"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <t694h1$br4$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Sat, 21 May 2022 01:52 UTC

According to David Chmelik <dchmelik@gmail.com>:
>I use date command formats to detail my XFCE system-tray clock. However,
>weekdays are 0 to 6. I'd like to be able to numbers them 1 to 7. ...

The date command matches the POSIX.1 spec so it's not going to change.

But if you want to make your own private version that works differently,
the source code is here:

https://github.com/freebsd/freebsd-src/tree/main/bin/date

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly


devel / comp.unix.bsd.freebsd.misc / Re: date command is great but could use improvements

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor