aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.c
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 /src/mm-modem-helpers.c
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 'src/mm-modem-helpers.c')
-rw-r--r--src/mm-modem-helpers.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index 1264289c..7c92305a 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -29,6 +29,7 @@
#include <libmm-glib.h>
#include "mm-sms-part.h"
+#include "mm-common-helpers.h"
#include "mm-modem-helpers.h"
#include "mm-helper-enums-types.h"
#include "mm-log-object.h"
@@ -384,38 +385,6 @@ mm_filter_current_bands (const GArray *supported_bands,
/*****************************************************************************/
-gchar *
-mm_new_iso8601_time (guint year,
- guint month,
- guint day,
- guint hour,
- guint minute,
- guint second,
- gboolean have_offset,
- gint offset_minutes)
-{
- GString *str;
-
- str = g_string_sized_new (30);
- g_string_append_printf (str, "%04d-%02d-%02dT%02d:%02d:%02d",
- year, month, day, hour, minute, second);
- if (have_offset) {
- if (offset_minutes >=0 ) {
- g_string_append_printf (str, "+%02d:%02d",
- offset_minutes / 60,
- offset_minutes % 60);
- } else {
- offset_minutes *= -1;
- g_string_append_printf (str, "-%02d:%02d",
- offset_minutes / 60,
- offset_minutes % 60);
- }
- }
- return g_string_free (str, FALSE);
-}
-
-/*****************************************************************************/
-
GArray *
mm_filter_supported_modes (const GArray *all,
const GArray *supported_combinations,