Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5961197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:55:53+00:00 2026-05-22T18:55:53+00:00

import org.joda.time.LocalDateTime; import java.util.Date; With this date or with the following ones it’s all

  • 0
import org.joda.time.LocalDateTime;
import java.util.Date;

With this date or with the following ones it’s all OK:

  • new LocalDateTime(new Date(0,0,1,2,30)) — 1900-01-01T02:30:00.000
  • new LocalDateTime(new Date(111,4,24,19,51)) — 2011-05-24T19:51:00.000

But there is something incomprehensible with preceding dates:

  • new LocalDateTime(new Date(0,0,1,2,29,50)) — 1900-01-01T01:59:50.000
  • new LocalDateTime(new Date(0,0,1)) — 1899-12-31T23:30:00.000
  • new LocalDateTime(new Date(-50,0,1)) — 1849-12-31T23:30:20.000
  • new LocalDateTime(new Date(-116,6,4)) — 1784-07-03T23:30:20.000

Who knows, what is this, and how to prevent this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:55:53+00:00Added an answer on May 22, 2026 at 6:55 pm

    Which timezone are you using? It looks like you’re dealing with a clock discontinuity, possibly around 2 AM on January 1st, 1900. That means a certain amount of time was skipped by the local clock and officially doesn’t exist. It could also be a change in DST. The consistent difference in your last 3 lines looks strange though – perhaps Java’s Calendar and Joda Time use a different version of the timezone database and the change is missing in one of them.

    You can check your timezone for changes at the linked-to site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Groovy (or Java) how can I convert a org.joda.time.LocalDateTime to a java.util.Date ?
The following is my Class code import java.net.*; import java.util.*; import java.sql.*; import org.apache.log4j.*;
I am importing this following : import org.apache.lucene.analysis.PorterStemmer in Java program. The whole package
In Groovy Console I have this: import groovy.util.* import org.codehaus.groovy.runtime.* def gse = new
I am trying to use org.apache.commons.collections.CollectionUtils in android with following code import java.util.ArrayList; import
Consider this code: import java.util.Collections; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.core.userdetails.User; public class SecureStuff { @PreAuthorize(#user.password
package org.apache.wicket.examples.guestbook; import java.util.Date; import org.apache.wicket.IClusterable; public class Comment implements IClusterable { private String
import java.util.*; import org.directwebremoting.util.Logger; public class People { public People() { people = new
I have the following in a java file (MyRtmpClient.java): import org.apache.mina.common.ByteBuffer; and ByteBuffer is
package com.crumbin.tabs; import java.util.ArrayList; import java.util.HashMap; import org.apache.http.client.HttpClient; import android.content.Context; import android.database.Cursor; import android.location.Location;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.