From: Andrei A Makarov <a.makarov@xi...> - 2004-03-17 16:01:44
When tryed to cast into dayTimeDuration type, for value
returned "P24855DT3H14M7.125S". As I can see it is not correct value.
Am i wrong?
Andrei Makarov mailto:a.makarov@...
From: Michael Kay <mhk@mh...> - 2004-03-17 20:46:54
The conversion of dayTimeDuration to string is giving the wrong answer when
the number of seconds is too big to fit in an int. Now fixed.
(Generally, the limits for these classes aren't very well-defined at the
moment. I was waiting to see how the spec would evolve to define limits, but
it looks as if it's all going to be implementation-defined. There are some
rules now on how overflow is handled for durations, which I need to check at
some stage. My approach when the spec is still evolving is not to worry too
much about the corner cases until it's all pinned down. For the moment, the
limits are that each component of the duration must fit in an int and the
total number of seconds must fit in a long.)
# -----Original Message-----
# From: saxon-help-admin@...
# [mailto:saxon-help-admin@...] On Behalf Of
# Andrei A Makarov
# Sent: 17 March 2004 16:04
# To: saxon-help@...
# Subject: [saxon] dayTimeDuration values
# When tryed to cast into dayTimeDuration type, for value
# Saxon returned "P24855DT3H14M7.125S". As I can see it is not
# correct value.
# Am i wrong?
# Best regards,
# Andrei Makarov mailto:a.makarov@...
# This SF.Net email is sponsored by: IBM Linux Tutorials
# Free Linux tutorial presented by Daniel Robbins, President and CEO of
# GenToo technologies. Learn everything from fundamentals to system
# saxon-help mailing list