Converting to a LocalTime also works, IME. Chris
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of vijay konnackal Sent: Thursday, June 21, 2007 6:59 PM To: Discussion of the Joda project Subject: Re: [Joda-interest] TimeOfDay formatting 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 ------------------------------------------------------------------------- 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
