Revert "g_date_time_format: support %D"

This reverts commit 46ce790772.

git-bz mishap (I think?)
This commit is contained in:
Ryan Lortie 2011-09-03 19:44:13 -04:00
parent 4d382a5a1c
commit a636dfd7fb

View File

@ -2171,10 +2171,6 @@ get_numeric_format (gchar *fmt,
* </term><listitem><simpara> * </term><listitem><simpara>
* the day of the month as a decimal number (range 01 to 31) * the day of the month as a decimal number (range 01 to 31)
* </simpara></listitem></varlistentry> * </simpara></listitem></varlistentry>
* <literal>%%D</literal>:
* </term><listitem><simpara>
* equivalent to <literal>%%m/%%d/%%y</literal>
* </simpara></listitem></varlistentry>
* <varlistentry><term> * <varlistentry><term>
* <literal>%%e</literal>: * <literal>%%e</literal>:
* </term><listitem><simpara> * </term><listitem><simpara>
@ -2454,12 +2450,6 @@ g_date_time_format (GDateTime *datetime,
get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : '0', 2); get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : '0', 2);
g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime)); g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime));
break; break;
case 'D':
g_string_append_printf (outstr, "%02d/%02d/%02d",
g_date_time_get_month (datetime),
g_date_time_get_day_of_month (datetime),
g_date_time_get_year (datetime));
break;
case 'e': case 'e':
get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : ' ', 2); get_numeric_format (fmt, sizeof(fmt), alt_digits, pad_set ? pad : ' ', 2);
g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime)); g_string_append_printf (outstr, fmt, g_date_time_get_day_of_month (datetime));