Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative years to indicate B.C. dates consistently #121

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

attipaci
Copy link
Collaborator

@attipaci attipaci commented Jan 28, 2025

REVERTED. The Astronomical and ISO 8601 standard is to indicate 1 B.C. as year 0 (not -1).

Affects:

  • julian_date()
  • cal_date()
  • novas_parse_date_format() / novas_parse_date()
  • novas_timestamp() / novas_iso_timestamp()

Adds:

  • cal_date2(), which works like cal_date() but takes int * pointers intead of short *.

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.72%. Comparing base (94cb726) to head (b436b0d).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   99.72%   99.72%           
=======================================
  Files           8        8           
  Lines        3597     3607   +10     
  Branches      698      702    +4     
=======================================
+ Hits         3587     3597   +10     
  Misses          1        1           
  Partials        9        9           
Flag Coverage Δ
unittests 99.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/novas.c 99.57% <100.00%> (+<0.01%) ⬆️
src/timescale.c 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94cb726...b436b0d. Read the comment docs.

@attipaci attipaci force-pushed the bc-dates branch 2 times, most recently from f1e89b4 to ae02245 Compare January 28, 2025 19:47
@attipaci attipaci marked this pull request as ready for review January 28, 2025 19:49
@attipaci attipaci force-pushed the bc-dates branch 3 times, most recently from 3c2cfe3 to c78e1f8 Compare January 28, 2025 19:54
@attipaci attipaci changed the title Negative years to indicate BC dates consistently Negative years to indicate B.C. dates consistently Jan 28, 2025
@attipaci attipaci self-assigned this Jan 28, 2025
@attipaci attipaci added the enhancement New feature or request label Jan 28, 2025
@attipaci attipaci added this to the 1.3.0 milestone Jan 28, 2025
@attipaci attipaci merged commit 92ca836 into main Jan 28, 2025
15 checks passed
@attipaci attipaci deleted the bc-dates branch January 28, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant