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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:11:45+00:00 2026-06-14T05:11:45+00:00

NSDate timestamp looks like 2012-12-11 18:30:41 – 400. The java timestamp is just a

  • 0

“NSDate timestamp” looks like “2012-12-11 18:30:41 – 400”. The java timestamp is just a long integer (for example:”276712445500″).

So, What is a Java equivalent for nsdate?

Thanks in advance .

  • 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-14T05:11:46+00:00Added an answer on June 14, 2026 at 5:11 am

    It depends what you mean by “looks like”. You can get a string representation of a java.util.Date using a DateFormat (e.g. SimpleDateFormat). You’d want to set the time zone yourself, though.

    I believe that the internal structure of NSDate is basically equivalent to java.util.Date, based on the documentation:

    The sole primitive method of NSDate, timeIntervalSinceReferenceDate, provides the basis for all the other methods in the NSDate interface. This method returns a time value relative to an absolute reference date—the first instant of 1 January 2001, GMT.

    In other words, the value doesn’t “know” its offset from UTC etc… it’s just a point in time. (The epoch and scale may well be different to java.util.Date, but that’s an implementation difference more than a conceptual one.)

    However, despite all of this I would strongly recommend that you use Joda Time for all date/time manipulation in Java. It’s a much nicer API than java.util.Date/Calendar.

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

Sidebar

Related Questions

I have date, for example: 2012-02-07 14:09:46.109950 and I need timestamp as 1328623786.568740 ,
Possible Duplicate: Concatenate Two NSDate String values Just confused that is there any default
I got a NSDate for example 1/6 -12 (Friday) and trying to find out
How to convert an NSDate into Unix timestamp? I've read many posts which do
How can I convert an NSDate to a Unix timestamp in Objective-C?
in my application I get, using JSON, a timestamp value like this : 1278321016000
@interface Event : NSManagedObject @property (nonatomic, retain) NSDate * timeStamp; @end There is no
Possible Duplicate: Converting an ISO 8601 timestamp into an NSDate: How does one deal
Is there a good+easy way to convert an Oracle Timestamp to an NSDate object
I have an NSTimeInterval, and I'd like to know whether that timestamp falls between

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.