Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtimezone.h File Reference
#include <glib/gerror.h>
#include <glib/gtypes.h>

Go to the source code of this file.

Typedefs

typedef typedefG_BEGIN_DECLS struct _GTimeZone GTimeZone
 

Enumerations

enum  GTimeType { G_TIME_TYPE_STANDARD , G_TIME_TYPE_DAYLIGHT , G_TIME_TYPE_UNIVERSAL }
 

Functions

GTimeZoneg_time_zone_new (const gchar *identifier)
 
GLIB_AVAILABLE_IN_2_68 GTimeZoneg_time_zone_new_identifier (const gchar *identifier)
 
GLIB_AVAILABLE_IN_ALL GTimeZoneg_time_zone_new_utc (void)
 
GLIB_AVAILABLE_IN_ALL GTimeZoneg_time_zone_new_local (void)
 
GLIB_AVAILABLE_IN_2_58 GTimeZoneg_time_zone_new_offset (gint32 seconds)
 
GLIB_AVAILABLE_IN_ALL GTimeZoneg_time_zone_ref (GTimeZone *tz)
 
GLIB_AVAILABLE_IN_ALL void g_time_zone_unref (GTimeZone *tz)
 
GLIB_AVAILABLE_IN_ALL gint g_time_zone_find_interval (GTimeZone *tz, GTimeType type, gint64 time_)
 
GLIB_AVAILABLE_IN_ALL gint g_time_zone_adjust_time (GTimeZone *tz, GTimeType type, gint64 *time_)
 
GLIB_AVAILABLE_IN_ALL const gcharg_time_zone_get_abbreviation (GTimeZone *tz, gint interval)
 
GLIB_AVAILABLE_IN_ALL gint32 g_time_zone_get_offset (GTimeZone *tz, gint interval)
 
GLIB_AVAILABLE_IN_ALL gboolean g_time_zone_is_dst (GTimeZone *tz, gint interval)
 
GLIB_AVAILABLE_IN_2_58 const gcharg_time_zone_get_identifier (GTimeZone *tz)
 

Typedef Documentation

◆ GTimeZone

typedef typedefG_BEGIN_DECLS struct _GTimeZone GTimeZone

Definition at line 34 of file gtimezone.h.

Enumeration Type Documentation

◆ GTimeType

enum GTimeType

GTimeType: @G_TIME_TYPE_STANDARD: the time is in local standard time @G_TIME_TYPE_DAYLIGHT: the time is in local daylight time @G_TIME_TYPE_UNIVERSAL: the time is in UTC

Disambiguates a given time in two ways.

First, specifies if the given time is in universal or local time.

Second, if the time is in local time, specifies if it is local standard time or local daylight time. This is important for the case where the same local time occurs twice (during daylight savings time transitions, for example).

Enumerator
G_TIME_TYPE_STANDARD 
G_TIME_TYPE_DAYLIGHT 
G_TIME_TYPE_UNIVERSAL 

Definition at line 51 of file gtimezone.h.

52{
56} GTimeType;
GTimeType
Definition gtimezone.h:52
@ G_TIME_TYPE_STANDARD
Definition gtimezone.h:53
@ G_TIME_TYPE_UNIVERSAL
Definition gtimezone.h:55
@ G_TIME_TYPE_DAYLIGHT
Definition gtimezone.h:54

Function Documentation

◆ g_time_zone_adjust_time()

GLIB_AVAILABLE_IN_ALL gint g_time_zone_adjust_time ( GTimeZone * tz,
GTimeType type,
gint64 * time_ )

◆ g_time_zone_find_interval()

GLIB_AVAILABLE_IN_ALL gint g_time_zone_find_interval ( GTimeZone * tz,
GTimeType type,
gint64 time_ )

◆ g_time_zone_get_abbreviation()

GLIB_AVAILABLE_IN_ALL const gchar * g_time_zone_get_abbreviation ( GTimeZone * tz,
gint interval )

◆ g_time_zone_get_identifier()

GLIB_AVAILABLE_IN_2_58 const gchar * g_time_zone_get_identifier ( GTimeZone * tz)

◆ g_time_zone_get_offset()

GLIB_AVAILABLE_IN_ALL gint32 g_time_zone_get_offset ( GTimeZone * tz,
gint interval )

◆ g_time_zone_is_dst()

GLIB_AVAILABLE_IN_ALL gboolean g_time_zone_is_dst ( GTimeZone * tz,
gint interval )

◆ g_time_zone_new()

GTimeZone * g_time_zone_new ( const gchar * identifier)

◆ g_time_zone_new_identifier()

GLIB_AVAILABLE_IN_2_68 GTimeZone * g_time_zone_new_identifier ( const gchar * identifier)

◆ g_time_zone_new_local()

GLIB_AVAILABLE_IN_ALL GTimeZone * g_time_zone_new_local ( void )

◆ g_time_zone_new_offset()

GLIB_AVAILABLE_IN_2_58 GTimeZone * g_time_zone_new_offset ( gint32 seconds)

◆ g_time_zone_new_utc()

GLIB_AVAILABLE_IN_ALL GTimeZone * g_time_zone_new_utc ( void )

◆ g_time_zone_ref()

GLIB_AVAILABLE_IN_ALL GTimeZone * g_time_zone_ref ( GTimeZone * tz)

◆ g_time_zone_unref()

GLIB_AVAILABLE_IN_ALL void g_time_zone_unref ( GTimeZone * tz)