From: vijay k. <vij...@gm...> - 2007-06-21 22:59:24
|
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 <js...@fa...> 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 > Jod...@li... > https://lists.sourceforge.net/lists/listinfo/joda-interest > |