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 8866759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:52:21+00:00 2026-06-14T16:52:21+00:00

i think this question might be duplicate,but from so many time i am searching

  • 0

i think this question might be duplicate,but from so many time i am searching the solution of this issue and not getting satified result.my problem is i want to find a time interval between two dates in secound.for that i am having time stamp value,i am able to convert time stamp to date like below

Date newDate = new Date();

newDate.setTime(Long.parseLong("-978307200")*1000L);

and i am getting such date after converting timestamp to date

Sun Jan 01 05:30:00 GMT+05:30 1939

my problem is i want to find time interval in secound between this date and year 1970,so any date which is less than 1970 for that i want to count time interval in secound.

it will be my pleasure if any one can help to solve this issue

thanks in advance
Aamirkhan I.

  • 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-06-14T16:52:22+00:00Added an answer on June 14, 2026 at 4:52 pm

    If you are having trouble with the standard Date api – try Joda Time – it’s much more convenient.

    Joda Time

    Also see this stack overflow post on a similar matter:-

    How to calculate elapsed time from now with Joda Time?

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

Sidebar

Related Questions

I think this question has been asked many a times but I've been searching
I don't think this is a duplicate, but I just might not be using
I know you might think this is a duplicate or a dumb question. But
I mostly develop using C#, but I think this question might be suitable for
I saw this question and some similar and I think it's not duplicate :
I realize that this might be a duplicate question but this question is very
Well this is not the first time im asking these question here but I
This question might be theoretical but i think some of the cases it makes
You might think that this question is already answered. However, I couldn't find the
Firstly, This might seem like a long question. I don't think it is... The

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.