Class

LunarDateDate

Description

final class LunarDate.Date : GObject.Object
{
  /* No available fields */
}

No description available.

Hierarchy

hierarchy this LunarDate ancestor_0 GObject ancestor_0--this

Ancestors

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_free

Frees a LunarDate returned from lunar_date_new().

since: 2.4.0

lunar_date_get_calendar

Returns the string about the date, used to show in calendar.

since: 3.0.0

lunar_date_get_constellation

Returns the constellation name.

since: 3.0.0

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_lunar_holiday

Add new holiday by lunar.

since: 3.0.0

lunar_date_set_solar_date

Sets the solar year, month, day and the hour for a LunarDate.

since: 2.4.0

lunar_date_set_solar_holiday

Add new holiday by solar.

since: 3.0.0

lunar_date_set_week_holiday

Add new holiday by week.

since: 3.0.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

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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.

Class structure

struct LunarDateDateClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.