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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:35:42+00:00 2026-05-20T18:35:42+00:00

What is the Objective-C equivalent of the Java TimeZone class?

  • 0

What is the Objective-C equivalent of the Java TimeZone class?

  • 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-05-20T18:35:43+00:00Added an answer on May 20, 2026 at 6:35 pm

    NSTimeZone, I believe. Can’t say I’ve ever done any Objective-C myself, but it looks right…

    Apple also has a (pretty short) article on using it.

    It’s quite likely that they won’t be direct equivalents in every respect, of course… but if there’s something you would use with Java’s TimeZone which you can’t figure out in NSTimeZone, ask about that specific call… and someone else can help you, I’m sure 🙂

    EDIT: The purpose of a time zone class is to convert between local times in different time zones. For example, right now, it’s 7.50pm for me – but it’s 12.50pm for the person who I’m about to have a Skype call with. One option for representing dates and times is to always store them in UTC (which is sort of the “zero” of time zones) and then convert the UTC value into the “local” time for the user, e.g. for display purposes. That’s not always the right option, but it’s usually a good starting point.

    At other times, you may have a local time and know person X’s time zone – and want to convert it to person Y’s time zone. It’s usually easiest to do that by converting the local time to UTC (using X’s time zone) and then to convert it back to local time using Y’s time zone.

    Time zones aren’t nearly as straightforward as you might expect – mostly due to daylight savings. Oddities:

    • Local times which either don’t exist, or occur twice, due to DST transitions
    • Time zones which change to DST at midnight, so that midnight doesn’t always exist
    • Governments deciding to scrap (or introduce) DST at almost no notice
    • DST which isn’t the normal “move an hour forwards”. IIRC, Tibet was considering introducing DST of 1:15.
    • Historical changes to time zones

    The list goes on.

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

Sidebar

Related Questions

I need to know which is equivalent concept of Java's property class in Objective-C?
Possible Duplicate: What is the Java equivalent of Objective-C's NSDictionary? I've seen other answers
Is there an equivalent of the .NET ManualResetEvent class available for use in Objective-C
What is the Objective-C equivalent of Java packages? How do you group and organize
What would be equivalent Objective C for this: template<class T> class Singleton { public:
What is the Objective-C equivalent of Double.NaN from Java? I've got a function that
What library/header/class is equivalent to the Java Math class? Background & bonus question: I'm
Equivalent to 'long' in Java what do we have in Objective C, NSInteger?
What is the Objective-C equivalent of the Java Language Specification or the C++ Standard
What is the equivalent for Vector's of Java in Objective-C?

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.