Added method gswe_timestamp_set_gregorian_full()
This commit is contained in:
parent
8c0fb42d4a
commit
5a997cb61d
@ -368,6 +368,26 @@ gswe_timestamp_get_instant_recalc(GsweTimestamp *timestamp)
|
|||||||
return timestamp->priv->instant_recalc;
|
return timestamp->priv->instant_recalc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gswe_timestamp_set_gregorian_full(GsweTimestamp *timestamp, gint year, gint month, gint day, gint hour, gint minute, gint second, gint microsecond, gdouble time_zone_offset)
|
||||||
|
{
|
||||||
|
timestamp->priv->gregorian_year = year;
|
||||||
|
timestamp->priv->gregorian_month = month;
|
||||||
|
timestamp->priv->gregorian_day = day;
|
||||||
|
timestamp->priv->gregorian_hour = hour;
|
||||||
|
timestamp->priv->gregorian_minute = minute;
|
||||||
|
timestamp->priv->gregorian_second = second;
|
||||||
|
timestamp->priv->gregorian_microsecond = microsecond;
|
||||||
|
timestamp->priv->gregorian_timezone_offset = time_zone_offset;
|
||||||
|
timestamp->priv->valid_dates = VALID_GREGORIAN;
|
||||||
|
|
||||||
|
if (timestamp->priv->instant_recalc == TRUE) {
|
||||||
|
gswe_timestamp_calculate_all(timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
|
gswe_timestamp_emit_changed(timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gswe_timestamp_set_gregorian_year(GsweTimestamp *timestamp, gint gregorian_year)
|
gswe_timestamp_set_gregorian_year(GsweTimestamp *timestamp, gint gregorian_year)
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,7 @@ GType gswe_timestamp_get_type(void);
|
|||||||
GsweTimestamp *gswe_timestamp_new(void);
|
GsweTimestamp *gswe_timestamp_new(void);
|
||||||
GsweTimestamp *gswe_timestamp_new_from_julian_day(gdouble julian_day);
|
GsweTimestamp *gswe_timestamp_new_from_julian_day(gdouble julian_day);
|
||||||
GsweTimestamp * gswe_timestamp_new_from_gregorian_full(gint year, gint month, gint day, gint hour, gint minute, gint second, gint microsecond, gdouble time_zone_offset);
|
GsweTimestamp * gswe_timestamp_new_from_gregorian_full(gint year, gint month, gint day, gint hour, gint minute, gint second, gint microsecond, gdouble time_zone_offset);
|
||||||
|
void gswe_timestamp_set_gregorian_full(GsweTimestamp *timestamp, gint year, gint month, gint day, gint hour, gint minute, gint second, gint microsecond, gdouble time_zone_offset);
|
||||||
void gswe_timestamp_set_instant_recalc(GsweTimestamp *timestamp, gboolean instant_recalc);
|
void gswe_timestamp_set_instant_recalc(GsweTimestamp *timestamp, gboolean instant_recalc);
|
||||||
gboolean gswe_timestamp_get_instant_recalc(GsweTimestamp *timestamp);
|
gboolean gswe_timestamp_get_instant_recalc(GsweTimestamp *timestamp);
|
||||||
void gswe_timestamp_set_gregorian_year(GsweTimestamp *timestamp, gint gregorian_year);
|
void gswe_timestamp_set_gregorian_year(GsweTimestamp *timestamp, gint gregorian_year);
|
||||||
|
Loading…
Reference in New Issue
Block a user