mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
If Julian is valid, we have to update the dmy representation before
1998-12-02 Havoc Pennington <hp@pobox.com> * gdate.c (g_date_set_month): If Julian is valid, we have to update the dmy representation before setting the components of it. (g_date_set_day): Same. (g_date_set_year): Same.
This commit is contained in:
parent
6a5abee024
commit
b94d7a72f0
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* gdate.c (g_date_set_month): If Julian is valid, we have to
|
||||||
|
update the dmy representation before setting the components
|
||||||
|
of it.
|
||||||
|
(g_date_set_day): Same.
|
||||||
|
(g_date_set_year): Same.
|
||||||
|
|
||||||
1998-12-02 Havoc Pennington <hp@pobox.com>
|
1998-12-02 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
* testgdate.c, testgdateparser.c: Two new files. This is kind of
|
||||||
|
3
gdate.c
3
gdate.c
@ -803,6 +803,7 @@ g_date_set_month (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_month (m));
|
g_return_if_fail (g_date_valid_month (m));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->month = m;
|
d->month = m;
|
||||||
@ -820,6 +821,7 @@ g_date_set_day (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_day (day));
|
g_return_if_fail (g_date_valid_day (day));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->day = day;
|
d->day = day;
|
||||||
@ -837,6 +839,7 @@ g_date_set_year (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_year (y));
|
g_return_if_fail (g_date_valid_year (y));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->year = y;
|
d->year = y;
|
||||||
|
@ -803,6 +803,7 @@ g_date_set_month (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_month (m));
|
g_return_if_fail (g_date_valid_month (m));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->month = m;
|
d->month = m;
|
||||||
@ -820,6 +821,7 @@ g_date_set_day (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_day (day));
|
g_return_if_fail (g_date_valid_day (day));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->day = day;
|
d->day = day;
|
||||||
@ -837,6 +839,7 @@ g_date_set_year (GDate *d,
|
|||||||
g_return_if_fail (d != NULL);
|
g_return_if_fail (d != NULL);
|
||||||
g_return_if_fail (g_date_valid_year (y));
|
g_return_if_fail (g_date_valid_year (y));
|
||||||
|
|
||||||
|
if (d->julian && !d->dmy) g_date_update_dmy(d);
|
||||||
d->julian = FALSE;
|
d->julian = FALSE;
|
||||||
|
|
||||||
d->year = y;
|
d->year = y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user