FdWallClock

FdWallClock

Functions

Description

Functions

fd_wall_clock_new ()

FdWallClock *
fd_wall_clock_new (void);

Creates a new FdWallClock

Returns

the new clock


fd_wall_clock_get_clock ()

const char *
fd_wall_clock_get_clock (FdWallClock *clock);

Returns the string representing the current time of this clock according to the user settings.

Parameters

clock

a FdWallClock

 

Returns

the time of the clock as a string. This string points to internally allocated storage and must not be freed, modified or stored.


fd_wall_clock_get_timezone ()

GTimeZone *
fd_wall_clock_get_timezone (FdWallClock *clock);

Returns the current local time zone used by this clock.

Parameters

clock

a FdWallClock

 

Returns

the GTimeZone of the clock.

[transfer none]


fd_wall_clock_string_for_datetime ()

char *
fd_wall_clock_string_for_datetime (FdWallClock *self,
                                   GDateTime *now,
                                   GDesktopClockFormat clock_format,
                                   gboolean show_weekday,
                                   gboolean show_full_date,
                                   gboolean show_seconds);

Returns

a newly allocated string representing the date & time passed, with the options applied.

[skip]