• date command is great but could use improvements

    From David Chmelik@21:1/5 to All on Fri May 20 22:25:37 2022
    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.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Levine@21:1/5 to All on Sat May 21 01:52:35 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)