File indexing completed on 2025-12-23 09:50:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef __G_TIME_ZONE_H__
0023 #define __G_TIME_ZONE_H__
0024
0025 #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
0026 #error "Only <glib.h> can be included directly."
0027 #endif
0028
0029 #include <glib/gerror.h>
0030 #include <glib/gtypes.h>
0031
0032 G_BEGIN_DECLS
0033
0034 typedef struct _GTimeZone GTimeZone;
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 typedef enum
0052 {
0053 G_TIME_TYPE_STANDARD,
0054 G_TIME_TYPE_DAYLIGHT,
0055 G_TIME_TYPE_UNIVERSAL
0056 } GTimeType;
0057
0058 GLIB_DEPRECATED_IN_2_68_FOR (g_time_zone_new_identifier)
0059 GTimeZone * g_time_zone_new (const gchar *identifier);
0060 GLIB_AVAILABLE_IN_2_68
0061 GTimeZone * g_time_zone_new_identifier (const gchar *identifier);
0062 GLIB_AVAILABLE_IN_ALL
0063 GTimeZone * g_time_zone_new_utc (void);
0064 GLIB_AVAILABLE_IN_ALL
0065 GTimeZone * g_time_zone_new_local (void);
0066 GLIB_AVAILABLE_IN_2_58
0067 GTimeZone * g_time_zone_new_offset (gint32 seconds);
0068
0069 GLIB_AVAILABLE_IN_ALL
0070 GTimeZone * g_time_zone_ref (GTimeZone *tz);
0071 GLIB_AVAILABLE_IN_ALL
0072 void g_time_zone_unref (GTimeZone *tz);
0073
0074 GLIB_AVAILABLE_IN_ALL
0075 gint g_time_zone_find_interval (GTimeZone *tz,
0076 GTimeType type,
0077 gint64 time_);
0078
0079 GLIB_AVAILABLE_IN_ALL
0080 gint g_time_zone_adjust_time (GTimeZone *tz,
0081 GTimeType type,
0082 gint64 *time_);
0083
0084 GLIB_AVAILABLE_IN_ALL
0085 const gchar * g_time_zone_get_abbreviation (GTimeZone *tz,
0086 gint interval);
0087 GLIB_AVAILABLE_IN_ALL
0088 gint32 g_time_zone_get_offset (GTimeZone *tz,
0089 gint interval);
0090 GLIB_AVAILABLE_IN_ALL
0091 gboolean g_time_zone_is_dst (GTimeZone *tz,
0092 gint interval);
0093 GLIB_AVAILABLE_IN_2_58
0094 const gchar * g_time_zone_get_identifier (GTimeZone *tz);
0095
0096 G_END_DECLS
0097
0098 #endif