aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-common-helpers.h
diff options
context:
space:
mode:
authorFrederic Martinsons <frederic.martinsons@sigfox.com>2021-10-15 17:02:20 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-10-22 13:48:20 +0200
commit9d82d309782c70ed7247db32902f48adebe90669 (patch)
treebb6a51a909ae9c544d05986c9b9beb96013887df /libmm-glib/mm-common-helpers.h
parent0510e9aef8818eeaa445aea246b670871c671ddb (diff)
cli, plugins: factorize usage of iso8601 datetime format
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com> Includes updates by Aleksander Morgado to fix coding style issues.
Diffstat (limited to 'libmm-glib/mm-common-helpers.h')
-rw-r--r--libmm-glib/mm-common-helpers.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libmm-glib/mm-common-helpers.h b/libmm-glib/mm-common-helpers.h
index c4720e58..a081a0dd 100644
--- a/libmm-glib/mm-common-helpers.h
+++ b/libmm-glib/mm-common-helpers.h
@@ -190,7 +190,16 @@ gboolean mm_get_double_from_match_info (GMatchInfo *match_info,
gdouble *out);
gchar *mm_get_string_unquoted_from_match_info (GMatchInfo *match_info,
guint32 match_index);
-gchar *mm_format_iso8601 (guint64 timestamp);
+
+gchar *mm_new_iso8601_time_from_unix_time (guint64 timestamp);
+gchar *mm_new_iso8601_time (guint year,
+ guint month,
+ guint day,
+ guint hour,
+ guint minute,
+ guint second,
+ gboolean have_offset,
+ gint offset_minutes);
/******************************************************************************/
/* Type checkers and conversion utilities */