Skip to content

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

@majorisgit

Description

@majorisgit

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._

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions