2
* Copyright 2010, 2014 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Michael Terry <michael.terry@canonical.com>
18
* Charles Kerr <charles.kerr@canonical.com>
21
#ifndef INDICATOR_DATETIME_UTILS_H
22
#define INDICATOR_DATETIME_UTILS_H
25
#include <gio/gio.h> /* GSettings */
29
/** \brief Returns true if the current locale prefers 12h display instead of 24h */
30
gboolean is_locale_12h (void);
32
void split_settings_location (const char * location,
36
gchar * get_timezone_name (const char * timezone,
37
GSettings * settings);
39
gchar * get_beautified_timezone_name (const char * timezone,
40
const char * saved_location);
42
gchar * generate_full_format_string_at_time (GDateTime * now,
43
GDateTime * then_begin,
44
GDateTime * then_end);
46
/** \brief Translate the string based on LC_TIME instead of LC_MESSAGES.
47
The intent of this is to let users set LC_TIME to override
48
their other locale settings when generating time format string */
49
const char* T_ (const char * msg);
54
#endif /* INDICATOR_DATETIME_UTILS_H */