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

  • SEARCH
  • Home
  • 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 132943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:20:34+00:00 2026-05-11T06:20:34+00:00

Is it possible to get the previous and next DST transition timestamp with the

  • 0

Is it possible to get the previous and next DST transition timestamp with the Java Calendar/Date/TimeZone API?
With Joda-Time I can write:

DateMidnight today = new DateMidnight(2009, 2, 24); DateTimeZone zone = today.getZone();  DateTime previousTransition =     new DateTime(zone.previousTransition(today.getMillis())); // 2008-10-26T02:59:59.999+02:00 for Europe/Berlin System.out.println(previousTransition);  DateTime nextTransition =     new DateTime(zone.nextTransition(today.getMillis())); // 2009-03-29T03:00:00.000+02:00 for Europe/Berlin System.out.println(nextTransition); 

Is there way to do this with the standard Java APIs?

  • 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. 2026-05-11T06:20:35+00:00Added an answer on May 11, 2026 at 6:20 am

    There’s no such functionality in java Date/Calendar/TimeZone API

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

Sidebar

Related Questions

Possible Duplicate: What is best solution to get next and previous month from given
Possible Duplicate: Get all files from VSS for a given date? I need to
Is it possible to get a thread dump of a Java Web Start application?
I have a webview and i have next previous buttons to get to the
\n - is a new line in java, is it possible to get to
Thanks for previous replies, Is it possible to get Package name of camera application
How would I add next/previous buttons to this snippet, cause as you can see
So in the Scala REPL, I can use the ctrl-{p,n,a,e} to do previous-, next-,
is it a possible to get the files changed from previous build to the
Possible Duplicate: How to add days to a date in Java I need to

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.