2013-09-27 00:11:17 +00:00
|
|
|
local lgi = require 'lgi'
|
2013-09-30 23:04:45 +00:00
|
|
|
local SweGlib = lgi.require('SweGlib', '2.0')
|
2013-09-27 00:11:17 +00:00
|
|
|
|
|
|
|
SweGlib.init()
|
|
|
|
|
|
|
|
local timestamp = SweGlib.Timestamp.new()
|
|
|
|
timestamp:set_gregorian_full(1983, 3, 7, 11, 54, 45, 0, 1)
|
|
|
|
|
|
|
|
local moment = SweGlib.Moment.new()
|
|
|
|
moment:set_timestamp(timestamp)
|
|
|
|
moment:set_timestamp(timestamp)
|
|
|
|
moment:set_coordinates(19.03990999, 47.49801000, 280)
|
|
|
|
moment:set_house_system(SweGlib.HouseSystem.PLACIDUS)
|
|
|
|
moment:add_all_planets()
|
|
|
|
|
|
|
|
local planet = moment:get_planet(SweGlib.Planet.SUN)
|
2013-09-30 23:04:45 +00:00
|
|
|
io.write(planet:get_position(), "\n")
|