b3345b1cd7
Fix gswe_timestamp_set_now_local()
...
It calculated the timezone offset wrong (for 1.0 hour it became 1000.0).
2015-11-24 12:06:30 +01:00
0886396879
Move gswe_timestamp_new_from_julian_day() to g_object_new() call
2014-11-18 00:42:17 +01:00
6187d45177
Make TimestampValidity public with name GsweTimestampValidityFlags
2014-11-17 13:32:54 +01:00
2a615e44c8
Remove unnecessary notifications upon GsweTimestamp creation
2014-11-17 13:17:07 +01:00
e850018d62
Add GsweTimestamp::julian-day property
...
It was somehow missing from the property list
2014-11-17 11:27:26 +01:00
34ded1881f
Fix instant-recalc property change handling
...
Despite the actual value, only the gswe_timestamp_calculate_all() was called.
2014-11-14 17:57:10 +01:00
46b6b86f88
Fix type during signal registering
2014-10-07 23:23:32 +02:00
385458d655
Make GsweTimestamp emit the changed signal only if something really changed
2014-10-02 00:13:31 +02:00
b981ed1b3b
Add gswe_timestamp_new_now_local() and gswe_timestamp_set_now_local()
...
Fixes #14
2014-08-14 14:59:07 +02:00
e16c4eca70
Code beautification
2014-08-13 00:55:31 +02:00
c10881fff1
Sending "notify" signals upon property change
2014-08-13 00:55:22 +02:00
aae1f06ed7
Setting Gregorian timezone now invalidates Gregorian date
...
* It calculates Julian Day beforehands, so a valid date remains in
timestamp
* gswe_timestamp_set_gregorian_timezone() doesn’t emit the "changed"
signal any more
2014-08-13 00:54:15 +02:00
8bf5a49c4b
Store property GParamSpecs in an array for notify emission
2014-08-13 00:51:26 +02:00
0caebd4f94
Revert "Remove gswe_init() call from GsweTimestamp initializers"
...
This reverts commit 078ff3370d6820800accb8c2f9c69285796cf99b.
It turns out that we actually need to call gswe_init() (or at least
g_type_init()) for GObjects to work.
2014-07-08 13:16:59 +02:00
d5bea25e4d
Add version information to some new functions
2014-07-08 11:02:25 +02:00
95e89a4c25
Code beautification
2014-07-08 10:43:54 +02:00
078ff3370d
Remove gswe_init() call from GsweTimestamp initializers
...
That call is unnecessary for time related functions.
2014-07-06 00:48:20 +02:00
66c8c3371c
Code beautifying in gswe-timestamp.c
...
Wrap really long lines
2014-07-06 00:47:37 +02:00
8adfd0b966
Fix error that makes class init fail on machines with UTC as time zone
...
For a more universal solution, the default values for a GsweTimestamp
are set according to the current UTC time, with time zone also set
to UTC.
2014-07-06 00:44:43 +02:00
95face8294
Add function gswe_timestamp_get_sidereal_time()
2014-06-11 15:59:55 +02:00
784987a2b6
Remove deprecated function calls from own code
2014-06-11 15:41:32 +02:00
07a351c373
Add Universal Time calculation functions
...
This is required for sidereal time calculations later. get/set Julian
day functions have been renamed to have an _et suffix. Meanwhile, the
old gswe_timestamp_get_julian_day() and gswe_timestamp_set_julian_day()
functions have been deprecated.
2014-06-11 15:41:32 +02:00
367b777a2d
Initialize SWE-GLib from each class init function
...
This is to satisfy #8 . Also, this makes SWE-GLib available for GLib
before 2.36, as gswe_init() also calls g_type_init(), which was necessary
before GLib 2.36
2013-10-05 02:18:30 +02:00
b73ac78f17
Moved all GError domains into one global GSWE_ERROR domain
2013-09-27 02:39:24 +02:00
cac67e57e3
Fixed licensing issue
...
Fixes #2
2013-09-22 18:22:13 +02:00
984ed5d527
Setting the time zone value now doesn't validate the Gregorian date
2013-09-18 21:54:52 +02:00
a790512f13
Fixed GsweTimestamp to comply with documentation
...
Although documentation states that an "empty" timestamp object has
the current date and time in the current time zone, it was not true.
2013-09-18 21:54:17 +02:00
62f5e8e8b8
Implemented gswe_timestamp_calculate_gregorian()
2013-09-16 16:15:23 +02:00
2fb9569e6c
gswe_timestamp_get_gregorian_timezone doesn't recalculate gregorian value
...
timezone_offset is not changed by the calculation process, no
recalculation is needed.
2013-09-16 16:15:07 +02:00
fbc29dbb2e
Added a GError parameter to gswe_timestamp_calculate_gregorian()
2013-09-16 16:14:08 +02:00
2f63859c0b
Made no-value error non-fatal in gswe_timestamp_calculate_gregorian()
2013-09-16 16:12:04 +02:00
270c83afac
Finished documenting GsweTimestamp
...
As a total, 92% of code is covered by documentation.
2013-09-16 13:37:24 +02:00
08465d91c3
Continued library documentation.
...
81% is covered already.
2013-09-16 13:20:53 +02:00
123e0c8a65
Fixed quark definition code
2013-09-16 12:20:18 +02:00
3174484ff4
Added GTK-Doc section documentation
2013-09-16 11:34:32 +02:00
5c3e05ce56
Added legal headings to all source files.
2013-09-16 09:16:49 +02:00
32d3a26ee6
Documented gswe_timestamp_new()
2013-09-11 03:33:14 +02:00
e520c3188b
Removed the changed method from GsweMomentClass and GsweTimestampClass
2013-09-11 01:54:36 +02:00
f65f66fd72
Finalized API
...
From this on, API (and hopefully ABI) change is very unlikely
2013-09-11 01:08:35 +02:00
5a997cb61d
Added method gswe_timestamp_set_gregorian_full()
2013-09-09 10:10:57 +02:00
b87589b155
Added GObject Introspection related rules
2013-09-05 17:17:23 +02:00
4d5714348a
Modified source, so it now compiles separately
2013-09-05 12:25:58 +02:00
1c2282324e
(split from Astrognome)Modified GsweTimestamp so the time zone must be specified as a double (in hours)
2013-09-01 19:30:27 +02:00
ee60b67eec
(split from Astrognome)Added SWE-Glib sources, which currently wraps Swiss Ephemeris function calls
2013-09-01 13:52:18 +02:00