diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-07-26 13:26:03 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-07-26 13:26:03 -0500 |
commit | 18012d5e396e87d1c0c5534c35c5d0de82c2f7aa (patch) | |
tree | b683918b59569f2441d2922bc8e96759faaab407 /src/utils.h | |
parent | 2c8cf9196bea17d20b9afd680f679eb285c5dc81 (diff) | |
download | ayatana-indicator-datetime-18012d5e396e87d1c0c5534c35c5d0de82c2f7aa.tar.gz ayatana-indicator-datetime-18012d5e396e87d1c0c5534c35c5d0de82c2f7aa.tar.bz2 ayatana-indicator-datetime-18012d5e396e87d1c0c5534c35c5d0de82c2f7aa.zip |
add 'terse' time formats for phone menu to match the spec.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/src/utils.h b/src/utils.h index 73bd83a..3b0d0a2 100644 --- a/src/utils.h +++ b/src/utils.h @@ -27,13 +27,33 @@ with this program. If not, see <http://www.gnu.org/licenses/>. G_BEGIN_DECLS -gboolean is_locale_12h (void); -void split_settings_location (const gchar * location, gchar ** zone, gchar ** name); -gchar * get_current_zone_name (const gchar * location); -gchar * generate_format_string_full (gboolean show_day, gboolean show_date); -gchar * generate_format_string_at_time (GDateTime * now, GDateTime * time); -gchar * join_date_and_time_format_strings (const char * date, const char * time); +gboolean is_locale_12h (void); +void split_settings_location (const char * location, + char ** zone, + char ** name); + +gchar * get_current_zone_name (const char * location); + +gchar* join_date_and_time_format_strings (const char * date_fmt, + const char * time_fmt); +/*** +**** +***/ + +const gchar * get_terse_time_format_string (GDateTime * time); + +const gchar * get_full_time_format_string (void); + +gchar * generate_terse_format_string_at_time (GDateTime * now, + GDateTime * time); + +gchar * generate_full_format_string (gboolean show_day, + gboolean show_date); + +gchar * generate_full_format_string_at_time (GDateTime * now, + GDateTime * time); + G_END_DECLS #endif |