Granite.DateTime – granite-7 Reference Manual
Packages
granite-7
Granite
DateTime
get_default_date_format
get_default_time_format
get_relative_datetime
is_same_day
seconds_to_time
Granite.DateTime
Description:
Content:
Functions:
public
string
get_default_date_format
(
bool
with_weekday =
false
,
bool
with_day =
true
,
bool
with_year =
false
)
public
string
get_default_time_format
(
bool
is_12h =
false
,
bool
with_second =
false
)
public
string
get_relative_datetime
(
DateTime
date_time)
public
bool
is_same_day
(
DateTime
day1,
DateTime
day2)
public
string
seconds_to_time
(
int
seconds)