try converting the Partial to an Instant (TimeOfDay to DateTime with
current date). The formatter does not format Partials correctly.

On 6/21/07, Jeff White <[EMAIL PROTECTED]> wrote:
> I couldn't find the answer to this in the archives. Why doesn't the
> following produce the intended output of "01:45"?
>
> TimeOfDay time = new TimeOfDay(13,45,0);
> DateTimeFormatter formatter = DateTimeFormat.forPattern("hh:mm");
> System.out.println(formatter.print(time));
>
> ??:45
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Joda-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to