Class
LunarDateDate
Constructors
lunar_date_new
Allocates a `LunarDate“ and initializes it. Free the return value with lunar_date_free()
.
since: 2.4.0
Functions
lunar_date_check_version
Checks that the LunarDate library in use is compatible with the
given version. Generally you would pass in the constants
LUNAR_DATE_MAJOR_VERSION
, LUNAR_DATE_MINOR_VERSION
, LUNAR_DATE_MICRO_VERSION
as the three arguments to this function; that produces
a check that the library in use is compatible with
the version of LunarDate the application or module was compiled against.
since: 2.4.0
Instance methods
lunar_date_get_holiday
Returns the all holiday of the date, joined with the delimiter. The date must be valid.
since: 3.0.0
lunar_date_get_jieri
Returns the all holiday of the date, joined with the delimiter. The date must be valid.
deprecated: 3.0.0
lunar_date_set_lunar_date
Sets the lunar year, month, day and the hour for a LunarDate
. If the month is a leap month, you should set the isleap to TRUE.
since: 2.4.0
lunar_date_set_solar_date
Sets the solar year, month, day and the hour for a LunarDate
.
since: 2.4.0
lunar_date_strftime
Use the given format to output a string, similar to strftime usage. The available formats and outputs are as follows:.
since: 2.4.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.