cal: dates before September 1752 use the Gregorian calendar
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start by locating the Rust implementation and tests for cal, then compare its calendar calculations and option parsing with the examples in the issue. The requested behavior covers Julian dates, reform selection, ISO mode, and year bounds; done means the default output and supported options match the specified util-linux behavior, with tests covering the listed examples.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
util-linux cal switches to the Julian calendar before the 1752 reform (its default --reform 1752), so September 1752 drops the 3rd to the 13th and earlier months keep their historical weekdays and leap days. cal here uses the Gregorian calendar for every year:
$ cal 9 1752 util-linux 2.41.5 this cal
September 1752 September 1752
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 14 15 16 1 2
17 18 19 20 21 22 23 3 4 5 6 7 8 9
24 25 26 27 28 29 30 10 11 12 13 14 15 16 ...
cal 2 1700: util-linux has a 29th and starts on Thursday; here it ends on the 28th and starts on Monday.cal 1 1: util-linux starts on Saturday, here on Monday.cal -j 9 1752: util-linux numbers the days 245, 246, 258, 259...--reform(1752|gregorian|iso|julian) and--isoare not accepted.
Year bounds also differ: util-linux rejects year 0 ("illegal year value: use positive integer") and accepts 10000, where this one shows January 0000 and rejects 10000 with "invalid date".
The output for 1753 and later already matches. Is following util-linux here wanted? If so I can send a PR: Julian weekdays and month lengths before 1752-09-14 by default, and --reform/--iso to choose.
Checked on main a3b2083 against util-linux 2.41.5 (Fedora 43).
- Vorherrschende Sprache
- Rust
- Sterne
- 230
- Forks
- 62
- Ø Merge
- 1 T. 2 Std.
- Gemergte PRs (30 T.)
- 23
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus uutils/util-linux
-
rev: multibyte characters are reversed byte by byte in UTF-8 localesEvtl. vergeben @SichenLiang hat das vor 33 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
uutils/util-linux#656 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Implement `chrt`Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
uutils/util-linux#641 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Implement `resizepart`Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
uutils/util-linux#638 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ionice: should the port enforce the documented ranges for -c and -n?Evtl. vergeben @mmclinton hat das vor 70 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
uutils/util-linux#624 ·
Maintainer antworten meist innerhalb von 1 Tag
-
chcpu: a large cpu-list range runs for hoursEvtl. vergeben @mmclinton hat das vor 75 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 42/100
uutils/util-linux#620 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in uutils/util-linux
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
RustCrypto/utils#1597 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
max-sixty/worktrunk#4727 · 7 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
carrick-sh/carrick#1859 ·
Maintainer antworten meist innerhalb von 1 Tag