Class

PhoshWallClock

since: 0

Description

class Phosh.WallClock : GObject.Object
{
  /* No available fields */
}
No description available.

Available since: 0

Ancestors

Constructors

phosh_wall_clock_new
No description available.

since: 0

Functions

phosh_wall_clock_get_default

Get the wall clock singleton.

since: 0

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.

since: 0

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.

since: 0

phosh_wall_clock_set_default

Set the wall clock singleton. This sets the singleton returned by phosh_wall_clock_get_default().

since: 0

phosh_wall_clock_string_for_datetime
No description available.

since: 0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Phosh.WallClock:date-time
No description available.

since: 0

Phosh.WallClock:time
No description available.

since: 0

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.

unstable since: 2.0

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.

since: 0

Phosh.WallClockClass.get_time_t
No description available.

since: 0