Class

PhoshWallClock

[]

Description [src]

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

Wall clock used for fetching date and time.

[]

Ancestors

[]

Constructors

phosh_wall_clock_new
No description available.

[]

Functions

phosh_wall_clock_get_default

Get the wall clock singleton.

[]

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().

phosh_wall_clock_string_for_datetime
No description available.

Methods inherited from GObject (43)
[]

Properties

Phosh.WallClock:date-time
No description available.

Phosh.WallClock:time
No description available.

[]

Signals

Signals inherited from GObject (1)

Class structure

[]

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.

Phosh.WallClockClass.get_time_t
No description available.