mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-14 20:01:04 +03:00
fixed date comparison to handle the tzo The only failures left are
* xmlschemastypes.c: fixed date comparison to handle the tzo The only failures left are disagreements on Notations and '+1' not being allowed for ulong, uint, ushort and ubyte. Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Mon Mar 31 13:19:04 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xmlschemastypes.c: fixed date comparison to handle the tzo
|
||||||
|
The only failures left are disagreements on Notations and
|
||||||
|
'+1' not being allowed for ulong, uint, ushort and ubyte.
|
||||||
|
|
||||||
Mon Mar 31 12:11:47 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
Mon Mar 31 12:11:47 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xmlschemastypes.c: fixed gMonth parsing routine accordingly
|
* xmlschemastypes.c: fixed gMonth parsing routine accordingly
|
||||||
|
@ -2495,7 +2495,9 @@ _xmlSchemaDateCastYMToDays (const xmlSchemaValPtr dt)
|
|||||||
*/
|
*/
|
||||||
#define TIME_TO_NUMBER(dt) \
|
#define TIME_TO_NUMBER(dt) \
|
||||||
((double)((dt->value.date.hour * SECS_PER_HOUR) + \
|
((double)((dt->value.date.hour * SECS_PER_HOUR) + \
|
||||||
(dt->value.date.min * SECS_PER_MIN)) + dt->value.date.sec)
|
(dt->value.date.min * SECS_PER_MIN) + \
|
||||||
|
(dt->value.date.tzo * SECS_PER_MIN)) + \
|
||||||
|
dt->value.date.sec)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlSchemaCompareDates:
|
* xmlSchemaCompareDates:
|
||||||
|
Reference in New Issue
Block a user