jodatime
Returning data when using Spring 3, ReST, and XML with Joda date types
I am having开发者_开发百科 an odd problem in a simple web service built with Spring 3 and MVC. The web service works ok and I get XML back just like I want, however, all the values for all Joda date/t[详细]
2023-03-05 19:05 分类:问答How to preserve time zone in Joda-Time timestamp?
I\'m parsing timestamps. They are forced to my local time zone (Europe/London) when I read them in. I want to preserve the original time zone offset instead.[详细]
2023-03-04 21:17 分类:问答jodatime days period type problem/error
I have a problem with jodatime api.I can\'t understand why this test doesn\'t works. I need resolve how many days, hours, mins and seconds I have in X milliseconds. But the days value aren\'t resolved[详细]
2023-03-03 19:46 分类:问答Better way to check if a joda.time.Interval spans exactly 1 calendar week (accounting for daylight savings etc)
Is there a better way of doing this? boolean oneCalendarWeek = interval.getStart().plusWeeks(1).equals( interval.getEnd() );[详细]
2023-03-02 20:34 分类:问答Jackson JSON not serializing Joda DateTime correctly
I have a Joda DateTime in an Order class: public class Order { private DateTime creationTime; ... } I have initialized my mapper as follows:[详细]
2023-02-27 02:57 分类:问答Hibernate is randomly generating joda time columns in my database as tiny blobs
I have a bit a of an odd situation happening and I can\'t seem to figure it out. I have a set of Hibernate annotated entity classes that have Jodatime date time fields on them. When hibernate ge开发者[详细]
2023-02-24 22:19 分类:问答Pattern to parse this string to a DateTime
Hey everyone I am trying to parse out a DateTime from a string that looks like \"20110406080000.000[-4:EDT]\" and am running into problems with the [-4:EDT][详细]
2023-02-22 19:11 分类:问答How to use joda time to format a fixed number of millisecons to hh:mm:ss?
I have input, 34600 milliseconds I would like to output this in the format 00:00:34 (HH:MM:SS). What classes should I look at JDK / Joda-time for this? I need this to be efficient, preferably thread[详细]
2023-02-20 20:04 分类:问答How to handle jodatime Illegal instant due to time zone offset transition
I want to set up joda DateTime to today at 2 AM (see sample code below). But I\'m getting this exception:[详细]
2023-02-19 22:01 分类:问答Using DateTimeConstants(JodaTime) value to store dayOfTheWeek in database?
I need to store a dayOfTheWeek in a column of my database. Im using HSQ开发者_如何转开发LDB. Also, Im already using JodaTime for other types, like Timestamp.[详细]
2023-02-19 09:55 分类:问答