| Liboobs (System configuration management) Reference Manual | ||||
|---|---|---|---|---|
OobsTimeConfig;
OobsObject* oobs_time_config_get (void);
glong oobs_time_config_get_unix_time (OobsTimeConfig *config);
void oobs_time_config_set_unix_time (OobsTimeConfig *config,
glong unix_time);
void oobs_time_config_get_time (OobsTimeConfig *config,
gint *year,
gint *month,
gint *day,
gint *hour,
gint *minute,
gint *second);
void oobs_time_config_set_time (OobsTimeConfig *config,
gint year,
gint month,
gint day,
gint hour,
gint minute,
gint second);
void oobs_time_config_get_utc_time (OobsTimeConfig *config,
gint *year,
gint *month,
gint *day,
gint *hour,
gint *minute,
gint *second);
void oobs_time_config_set_utc_time (OobsTimeConfig *config,
gint year,
gint month,
gint day,
gint hour,
gint minute,
gint second);
const gchar * oobs_time_config_get_timezone (OobsTimeConfig *config);
void oobs_time_config_set_timezone (OobsTimeConfig *config,
const gchar *timezone);
OobsObject* oobs_time_config_get (void);
Returns the OobsTimeConfig singleton, this object represents the date and time configuration.
Returns : |
the singleton |
glong oobs_time_config_get_unix_time (OobsTimeConfig *config);
Returns the time, measured in seconds, since the "epoch" (1970-01-01T00:00:00Z).
|
An |
Returns : |
The unix time of the system. |
void oobs_time_config_set_unix_time (OobsTimeConfig *config,glong unix_time);
This function sets the
|
An |
|
new Unix time. |
void oobs_time_config_get_time (OobsTimeConfig *config,gint *year,gint *month,gint *day,gint *hour,gint *minute,gint *second);
Gets the system time and date in human readable values.
|
An |
|
gint pointer to store the year, or |
|
gint pointer to store the month, or |
|
gint pointer to store the day, or |
|
gint pointer to store the hour, or |
|
gint pointer to store the minute, or |
|
gint pointer to store the second, or |
void oobs_time_config_set_time (OobsTimeConfig *config,gint year,gint month,gint day,gint hour,gint minute,gint second);
Sets the time and date of
|
An |
|
year. |
|
month. |
|
day. |
|
hour. |
|
minute. |
|
second. |
void oobs_time_config_get_utc_time (OobsTimeConfig *config,gint *year,gint *month,gint *day,gint *hour,gint *minute,gint *second);
Gets the system time and date in human readable values (UTC).
|
An |
|
gint pointer to store the year, or |
|
gint pointer to store the month, or |
|
gint pointer to store the day, or |
|
gint pointer to store the hour, or |
|
gint pointer to store the minute, or |
|
gint pointer to store the second, or |
void oobs_time_config_set_utc_time (OobsTimeConfig *config,gint year,gint month,gint day,gint hour,gint minute,gint second);
Sets the time and date of config to be the specified in the parameters (assuming they're in UTC).
|
An |
|
year. |
|
month. |
|
day. |
|
hour. |
|
minute. |
|
second. |
constgchar * oobs_time_config_get_timezone (OobsTimeConfig *config);
Returns the timezone set for
|
An |
Returns : |
A pointer to the timezone as a string or |
void oobs_time_config_set_timezone (OobsTimeConfig *config, constgchar *timezone);
Sets the timezone of
|
An |
|
A new timezone for |