[glib/wip/source-api] g_date_time_format: drop %N format
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/source-api] g_date_time_format: drop %N format
- Date: Fri, 2 Sep 2011 22:11:40 +0000 (UTC)
commit f75644a9b00635f7527b8d77f11f032bc71f56a1
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Sep 2 13:38:03 2011 -0400
g_date_time_format: drop %N format
%N is not specified in any standard document, but we use it to display
%the number of microseconds.
The fact that our our current implementation of it is nearly useless
(since it does not zero-pad) coupled with the high chance that a future
version of the C standard may specify it with another meaning means that
we should drop it.
https://bugzilla.gnome.org/show_bug.cgi?id=658061
glib/gdatetime.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/glib/gdatetime.c b/glib/gdatetime.c
index a9b02e7..8e28202 100644
--- a/glib/gdatetime.c
+++ b/glib/gdatetime.c
@@ -2208,11 +2208,6 @@ get_numeric_format (gchar *fmt,
* the minute as a decimal number (range 00 to 59)
* </simpara></listitem></varlistentry>
* <varlistentry><term>
- * <literal>%%N</literal>:
- * </term><listitem><simpara>
- * the micro-seconds as a decimal number
- * </simpara></listitem></varlistentry>
- * <varlistentry><term>
* <literal>%%p</literal>:
* </term><listitem><simpara>
* either "AM" or "PM" according to the given time value, or the
@@ -2454,9 +2449,6 @@ g_date_time_format (GDateTime *datetime,
get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : '0', 2);
g_string_append_printf (outstr, fmt, g_date_time_get_minute (datetime));
break;
- case 'N':
- g_string_append_printf (outstr, "%"G_GUINT64_FORMAT, datetime->usec % USEC_PER_SECOND);
- break;
case 'O':
alt_digits = TRUE;
goto next_mod;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]