cal: dates before September 1752 use the Gregorian calendar
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Rust
- Star
- 230
- Fork
- 62
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của uutils/util-linux
-
rev: multibyte characters are reversed byte by byte in UTF-8 localesCó thể đã có người làm @SichenLiang đã nhận 33 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
uutils/util-linux#656 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Implement `chrt`Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
uutils/util-linux#641 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Implement `resizepart`Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
uutils/util-linux#638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ionice: should the port enforce the documented ranges for -c and -n?Có thể đã có người làm @mmclinton đã nhận 70 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
uutils/util-linux#624 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chcpu: a large cpu-list range runs for hoursCó thể đã có người làm @mmclinton đã nhận 75 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
uutils/util-linux#620 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của uutils/util-linux
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
RustCrypto/utils#1597 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Non-`main` default branchesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
max-sixty/worktrunk#4727 · 7 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
carrick-sh/carrick#1859 ·
Maintainer thường phản hồi trong vòng 1 ngày