使用瑞士星历表计算上升

时间:2018-08-27 13:54:46

标签: php

我正在使用PHP Extension for Swiss Ephemeris才能在PHP上工作。

这是我根据出生日期获得升华的代码:

$utc = swe_utc_time_zone(2018, 5, 26, 1, 15, 0, 6);
$jd = swe_utc_to_jd($utc['year'], $utc['month'], $utc['day'], $utc['hour'], $utc['min'], $utc['sec'], SE_GREG_CAL);

// This contains some result
$calc = swe_calc($jd[0],SE_ECL_NUT, SEFLG_SWIEPH);

// This supposed to contain Ascendant, but is empty
$houses = swe_houses($jd[1], 42.4782, 78.3956, 'A');

我的错误在哪里?

0 个答案:

没有答案