GnomeDesktop.WallClock¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r/w |
|||
r/w |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_object |
r |
Class Details¶
- class GnomeDesktop.WallClock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
the new clock
- Return type:
Creates a new
GnomeDesktop.WallClock
- get_clock()¶
- Returns:
the time of the clock as a string. This string points to internally allocated storage and must not be freed, modified or stored.
- Return type:
Returns the string representing the current time of this clock according to the user settings.
- get_timezone()¶
- Returns:
the
GLib.TimeZone
of the clock.- Return type:
Returns the current local time zone used by this clock.
- string_for_datetime(now, clock_format, show_weekday, show_full_date, show_seconds)¶
- Parameters:
now (
GLib.DateTime
) –clock_format (
GDesktopEnums.ClockFormat
) –show_weekday (
bool
) –show_full_date (
bool
) –show_seconds (
bool
) –
- Returns:
a newly allocated string representing the date & time passed, with the options applied.
- Return type:
Property Details¶
- GnomeDesktop.WallClock.props.clock¶
-
A formatted string representing the current clock display.
- GnomeDesktop.WallClock.props.force_seconds¶
-
If
True
, the formatted clock will always have seconds precision and the ‘clock’ property will always be updated every second, irrespective of system configuration.
- GnomeDesktop.WallClock.props.time_only¶
-
If
True
, the formatted clock will never include a date or the day of the week, irrespective of configuration.
- GnomeDesktop.WallClock.props.timezone¶
- Name:
timezone
- Type:
- Default Value:
- Flags:
The timezone used for this clock