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

swe_revjul to _revjul - change it to hour minute seconds #75

Open
majorisgit opened this issue Jul 6, 2024 · 0 comments
Open

swe_revjul to _revjul - change it to hour minute seconds #75

majorisgit opened this issue Jul 6, 2024 · 0 comments

Comments

@majorisgit
Copy link

For swe_revjul function

_void swe_revjul(

double tjd, /* Julian day number */

int gregflag, /* Gregorian calendar: 1, Julian calendar: 0 */

int year, / target addresses for year, etc. */

int *month, int *day, double *hour);_

Fix the output from pyswisseph, output hour, minute, seconds instead of float hour.

_revjul(...)
Calculate year, month, day, hour from Julian day number.

:Args: float jd, int cal=GREG_CAL

  • jd: Julian day number
  • cal: either GREG_CAL (gregorian) or JUL_CAL (julian)

:Return: int year, int month, int day, float hour

This function raises ValueError if cal is not GREG_CAL or JUL_CAL._

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant