Functions related to calendar and time conversions.
swe_julday(year, month, day, hour, gregflag)swe_date_conversion(year, month, day, hour, cal)swe_revjul(jd, gregflag)
swe_date_conversion(year, month, day, hour, cal)
swe_revjul(jd, gregflag)
Astronomical year as integer
Month as integer
Day as integer
Hour as double
Calendar type as integer (SE$JUL_CAL=0 or SE$GREG_CAL=1)
Calendar type "g" [Gregorian] or "j" [Julian] as char
Julian day number as double
swe_date_conversion returns a list with named entries: return status flag as integer, jd Julian day number as double
swe_date_conversion
return
jd
swe_revjul returns a list with named entries: year year as integer, month month as integer, day day as integer and hour hour as double.
swe_revjul
year
month
day
hour
Convert calendar dates to the astronomical time scale which measures time in Julian day number.
Convert calendar dates to the astronomical time scale which measures time in Julian day number and checks if the calendar date is legal.
Compute year, month, day and hour from a Julian day number.
Section 7 in http://www.astro.com/swisseph/swephprg.htm
# NOT RUN { data(SE) swe_julday(2000,1,1,12,SE$GREG_CAL) swe_date_conversion(2000,1,1,12,"g") swe_revjul(2452500,SE$GREG_CAL) # }
Run the code above in your browser using DataCamp Workspace