Class
PhoshWallClock
Description [src]
class Phosh.WallClock : GObject.Object
{
/* No available fields */
}
Wall clock used for fetching date and time.
Instance methods
phosh_wall_clock_get_clock
Gets the current clock string, if time_only is true this will be just the current time, otherwise the date + time.
phosh_wall_clock_local_date
Get the local date as string We honor LC_MESSAGES so we e.g. don’t get a translated date when the user has LC_MESSAGES=en_US.UTF-8 but LC_TIME to their local time zone.
phosh_wall_clock_set_default
Set the wall clock singleton. This sets the singleton returned by
phosh_wall_clock_get_default()
.
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 PhoshWallClockClass {
GObjectClass parent_class;
const char* (* get_clock) (
PhoshWallClock* self,
gboolean time_only
);
gint64 (* get_time_t) (
PhoshWallClock* self
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
get_clock: const char* (* get_clock) ( PhoshWallClock* self, gboolean time_only )
No description available.
get_time_t: gint64 (* get_time_t) ( PhoshWallClock* self )
No description available.
Virtual methods
Phosh.WallClockClass.get_clock
Gets the current clock string, if time_only is true this will be just the current time, otherwise the date + time.