GNOME Desktop Library Reference Manual: GnomeWallClock

## GnomeWallClock GnomeWallClock |

## Synopsis

    struct              GnomeWallClock;
    struct              GnomeWallClockClass;
    GnomeWallClock *    gnome_wall_clock_new                (void);
    const char *        gnome_wall_clock_get_clock          (GnomeWallClock *clock);
    GTimeZone *         gnome_wall_clock_get_timezone       (GnomeWallClock *clock);

## Object Hierarchy

      GObject
       +----GnomeWallClock

## Properties

      "clock"                    gchar*                : Read
      "time-only"                gboolean              : Read / Write
      "timezone"                 GTimeZone*            : Read

## Description

## Details

### struct GnomeWallClock

    struct GnomeWallClock;

### struct GnomeWallClockClass

    struct GnomeWallClockClass {
    	GObjectClass parent_class;
    };

### gnome_wall_clock_new ()

    GnomeWallClock *    gnome_wall_clock_new                (void);

Creates a new GnomeWallClock

Returns : | the new clock

### gnome_wall_clock_get_clock ()

    const char *        gnome_wall_clock_get_clock          (GnomeWallClock *clock);

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

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

### gnome_wall_clock_get_timezone ()

    GTimeZone *         gnome_wall_clock_get_timezone       (GnomeWallClock *clock);

Returns the current local time zone used by this clock.

`clock` : | a GnomeWallClock
Returns : | the GTimeZone of the clock. [transfer none]

## Property Details

### The `"clock"` property

      "clock"                    gchar*                : Read

A formatted string representing the current clock display.

Default value: NULL

### The `"time-only"` property

      "time-only"                gboolean              : Read / Write

If `TRUE`, the formatted clock will never include a date or the day of the week, irrespective of configuration.

Default value: FALSE

### The `"timezone"` property

      "timezone"                 GTimeZone*            : Read

The timezone used for this clock