Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [jodatime]

Joda-Time provides a quality replacement for the Java date and time classes. The design allows for multiple calendar systems, while still providing a simple API.

jodatime
1 vote
1 answer
40 views

uPickle ReadWriter for joda DateTime fails

For a project, i need JSON representation for a org.joda.time.DateTime. For JSON, i use uPickle. As there is no implicit ReaderWriter[DateTime], i have to write it myself. After googleing around, i ...
Christian H. Kuhn's user avatar
0 votes
0 answers
39 views

Joda-time type mapping in Hibernate ORM 6

I'm new to Java and I am trying to migrate from Hibernate 5 to 6. My application uses joda-time for the timestamp data type. It is using both annotation and hibernate mapping files. Following is a ...
tieuquynd's user avatar
-3 votes
1 answer
53 views

Timezone defaults to UTC [closed]

I have an application that is running as expected. Many portion of the application displays DateTime. I am using jodatime library. After adding features to the application, default timezone changed to ...
Hohenheim's user avatar
  • 407
1 vote
1 answer
133 views

Why do I get a difference between two dates in Java? [duplicate]

Period period = new Period(startDate, endDate, PeriodType.yearMonthDay()); int years = period.getYears(); int months = period.getMonths(); int days = period.getDays(); if startDate = May 1, 1975 and ...
user414243's user avatar
0 votes
0 answers
28 views

Apache Drill/Joda datetime library timezone conversion

I was using Apache Drill, which underneath use Joda library for anything date/time related, to convert time zone conversion. Based on the Joda documentation https://www.joda.org/joda-time/apidocs/org/...
Charles Nguyen's user avatar
0 votes
0 answers
21 views

Not able to serialize ZonedDateTime,PeriodDuration while converting bean to xml

I am using joda time earlier now I have migrated from DateTime(joda) to ZonedDateTime(java.time) also converted Period(joda) to PeriodDuration(java). But as ZonedDateTime and PeriodDuration does not ...
Saurabh Sole's user avatar
2 votes
2 answers
588 views

Is Joda DateTime supported by Hibernate 6?

I am trying to upgrade my spring boot from 2.7.X to 3.2.X. But the following code is not compiling. @jakarta.persistence.Entity public class Order { ... @Type(type = "org.jadira.usertype....
Masudul's user avatar
  • 21.9k
0 votes
1 answer
200 views

OpenRewrite recipe to migrate Joda to Java 8 time?

Since Java 8, Joda time has been replaced by the standard java.time APIs. Is there a OpenRewrite recipe that does that automatically? Especially in a big codebase, the task can prove tedious to be ...
Daniel Pop's user avatar
0 votes
0 answers
30 views

Android calendar picking system date instead of time-zoned date

Requirement: I need to show current date and time according to given date time. For this, in device settings I disabled automatically setting of timezone and changed the date and time to let say: 2023-...
Farhan Khan's user avatar
0 votes
1 answer
66 views

How to migrate Joda time Period API to Java time (java 8)?

I want to migrate JODA time period API to JAVA time (java 8). Joda time period API supports both time and date.eg. It supports from milliseconds to year. But in java.time we have 2 separate ...
Saurabh Sole's user avatar
1 vote
0 answers
46 views

Joda time library with Grails 4

I am trying to migration from grails 3.4.x to grails 4.1.0 We have used joda-time library and have domains with DateTime and other joda classes. On version Grails 3.4, we did date mapping like grails....
sufyan.shoaib's user avatar
0 votes
0 answers
25 views

Joda: Epoch Time Conversion coming as "1970" date

So I have epoch seconds coming to Android app from API like this "1701259436" (unix seconds). And then i used Joda Time in GsonAdapter to convert them to date time like below DateTime(it * ...
Ajji's user avatar
  • 3,118
-1 votes
1 answer
179 views

Period week, month, year in lunar calendar Vietnamese or Chinese

I want to show the all week start dates between two dates. Suppose I have selected start date as 25th July 2023 - 25th Aug 2023, then it should return the results: 25 July 2023 2 Aug 2023 9 Aug 2023 ...
huy hoang trong's user avatar
2 votes
0 answers
99 views

How to Construct a Timebucket key for 2 hour window in REDIS

I am writing a throttling logic where i need to throttle requests of a user if the total number of requests for that USERID reaches a threshold of 200 within a 2 hour time window(sliding window). I ...
Yathish Manjunath's user avatar
2 votes
1 answer
172 views

Exception when executing JDBC query - Illegal instant due to time zone offset transition with Logstash

I have the following JDBC input: input { jdbc { id => "mypipeline" jdbc_driver_class => "com.mysql.jdbc.Driver" jdbc_driver_library => "/usr/share/...
Hasan Can Saral's user avatar

15 30 50 per page
1
2 3 4 5
196