GLib.Date – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Date
get_days_in_month
valid_day
valid_dmy
valid_julian
valid_weekday
add_days
add_months
add_years
clamp
clear
compare
days_between
get_day
get_day_of_year
get_iso8601_week_of_year
get_julian
get_monday_week_of_year
get_month
get_sunday_week_of_year
get_weekday
get_year
is_first_of_month
is_last_of_month
order
set_day
set_dmy
set_julian
set_month
set_parse
set_time_t
set_time_val
set_year
strftime
subtract_days
subtract_months
subtract_years
to_time
valid
Date
Object Hierarchy:
Description:
public
struct
Date
Namespace:
GLib
Package:
glib-2.0
Content:
Static methods:
public
static
uchar
get_days_in_month
(
DateMonth
month,
DateYear
year)
public
static
bool
valid_day
(
DateDay
day)
public
static
bool
valid_dmy
(
DateDay
day,
DateMonth
month,
DateYear
year)
public
static
bool
valid_julian
(
uint
julian_date)
public
static
bool
valid_weekday
(
DateWeekday
weekday)
Methods:
public
void
clear
(
uint
n_dates =
1
)
public
void
set_day
(
DateDay
day)
public
void
set_month
(
DateMonth
month)
public
void
set_year
(
DateYear
year)
public
void
set_dmy
(
DateDay
day,
int
month,
DateYear
y)
public
void
set_julian
(
uint
julian_day)
public
void
set_time_t
(
time_t
timet)
public
void
set_time_val
(
TimeVal
timeval)
public
void
set_parse
(
string
str)
public
void
add_days
(
uint
n_days)
public
void
subtract_days
(
uint
n_days)
public
void
add_months
(
uint
n_months)
public
void
subtract_months
(
uint
n_months)
public
void
add_years
(
uint
n_years)
public
void
subtract_years
(
uint
n_years)
public
int
days_between
(
Date
date2)
public
int
compare
(
Date
rhs)
public
void
clamp
(
Date
min_date,
Date
max_date)
public
void
order
(
Date
date2)
public
DateDay
get_day
()
public
DateMonth
get_month
()
public
DateYear
get_year
()
public
uint
get_julian
()
public
DateWeekday
get_weekday
()
public
uint
get_day_of_year
()
public
bool
is_first_of_month
()
public
bool
is_last_of_month
()
public
uint
get_monday_week_of_year
()
public
uint
get_sunday_week_of_year
()
public
uint
get_iso8601_week_of_year
()
public
size_t
strftime
(
char
[] s,
string
format)
public
void
to_time
(
out
Time
tm)
public
bool
valid
()