You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Broad, Tony" <To...@drkw.com> on 2002/11/19 18:13:26 UTC
ExsltDateTime - hourInDay
> Hello,
>
> You've probably already seen this - but I couldn't see it in bugzilla: in
> org.apache.xalan.lib.ExsltDatetime - when calling:
>
> public static XNumber hourInDay(String datetimeIn)
>
> with an xs:dateTime string, it returns NaN because it can't match the
> templates {d, t}.
>
> I believe it should be comparing the input to {dt, t}.
>
> Cheers,
>
> Tony
>
>
> --- ExsltDatetime.java.orig Tue Nov 19 12:25:14 2002
> +++ ExsltDatetime.java Tue Nov 19 12:13:09 2002
> @@ -525,7 +525,7 @@
> if (datetime == null)
> return new XNumber(Double.NaN);
>
> - String[] formats = {d, t};
> + String[] formats = {dt, t};
> return new XNumber(getNumber(datetime, formats,
> Calendar.HOUR_OF_DAY));
> }
>
----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------