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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:34:23+00:00 2026-06-10T11:34:23+00:00

I am sending Sms from emulator control to emulator.. but it shows time in

  • 0

I am sending Sms from emulator control to emulator.. but it shows time in some different format. Can Anyone Help me understand that code or format. Here is the pic

enter image description here

  • 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-10T11:34:25+00:00Added an answer on June 10, 2026 at 11:34 am

    Its probably using the System.currentTimeMillis() function for accessing the time, what returns the current time in milliseconds. If you want your date formatted, then use:

    long time = System.currentTimeMillis();
    String timeString = new Date(time).toLocaleString();
    

    Or if you just need the time part from it, like in the example you have shown, then:

    SimpleDateFormat formater = new SimpleDateFormat("h:mm a");
    String timeString = formater.format(new Date(time)); //time is the current time as a long value;
    

    As for how the date is stored:

    System.currentTimeMillis()

    Returns the difference, measured in milliseconds, between the current
    time and midnight, January 1, 1970 UTC.

    This means, that the long number you get, is the passed milliseconds since January 1, 1970.
    From this value its pretty easy to count the current year, month day, etc…

    As you can see in my previous example, you can conver this long value to a Date object, by passing it to the Date() constructor, and you can convert a Date object to a long value using:

    long time = dateObject.getTime();
    

    I hope this helps!

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

Sidebar

Related Questions

I need a help in Android sms application. I am sending a message from
Sending out SMS messages from my Android phone in Java, how can I do
I am sending SMS from my bus ticketing site. The SMS can be send
sending text to label and number to int from tabelview to viewcontroller but it
I have an application which requires sending sms from one user to another.On receiving
My carrier (I live in Venezuela) is constantly sending me SMS, some of it
I have a pretty peculiar problem with sending a SMS from the iPhone programmatically,
I'm working on a program in C# that can send a SMS from my
Possible Duplicate: Sending SMS from PHP I would like to make and develop a
I am sending an SMS from my web application in my laptop to a

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.