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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:50:21+00:00 2026-06-12T11:50:21+00:00

I am using Android’s Calendar object and I am using the getTimeInMillis() method, but

  • 0

I am using Android’s Calendar object and I am using the getTimeInMillis() method, but when I look at the Value it gives me it is a really long number. I am trying to replicate this format but I don’t know how as when I take the current time in 24 hour mode and convert it to milliseconds I am completely off.

Example:

Calendar.getTimeInMillis() : at 11:46 pm = 1,349,585,220,205

Time at 11:46 pm using formula[(23 * 60 * 60 * 1000) + (46 * 60 * 1000)] = 85,560,000

I’m wondering if there is some kind of formula the calendar is using to convert the current time to Milliseconds and how I can replicate this.

Thank you!

  • 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-12T11:50:22+00:00Added an answer on June 12, 2026 at 11:50 am

    It’s the number of milliseconds since the epoch, 1/1/1970. See this article on Unix time.

    1,349,585,220,205 milliseconds / (1000 * 3600) = number of hours = 374884.7833902778
    374884.7833902778 hours / 24 = 15620.19930792824 days
    15620.19930792824 days / 365 days = 42.79506659706368 years
    
    1970 + 42 years = 2012
    

    (This is not precise due to not taking into account daylight savings time. Use a real datetime library!)

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

Sidebar

Related Questions

I am using android-facebook-sdk and i am trying to request profile information. But i
Using Android opengl I need to move an object from point A to point
I am using android 2.1 platform.The code I have will display the Name number
I am using android ndk, and for that I am trying to create a
If i am using Android 2.2 and call File.list() method in BookGenerator.java , then
I'm using Android Support Library (v4) and ActionBarSherlock. I'm trying to close a progress
Am using android:configChanges=keyboardHidden|orientation for switching between portrait and landscape modes. But when user opens
I'm trying to retrieve the MSISDN from the SIM using Android, I have tried
I need some help to store a Object in an SQLite database using Android.I
Using Android (Eclipse) I am trying to read a .csv file and dynamically populate

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.