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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:47:10+00:00 2026-06-02T02:47:10+00:00

With the following code, foo gives me the local time or GMT? NSString *

  • 0

With the following code, foo gives me the local time or GMT?

NSString * foo = [formatter2 stringFromDate:[NSDate dateWithTimeIntervalSinceNow:-2 * 3600]];  
  • 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-02T02:47:12+00:00Added an answer on June 2, 2026 at 2:47 am

    The string flyerid will represent the time minus 2 hours in your current time zone, yes. That’s the purpose of the date formatter, which, by default, uses the computer’s Locale information to convert a passed-in date to the representation closest to what the user expects. That includes using the computer’s time zone. (You can change that, of course, by sending setTimeZone: to the formatter.)

    The date object itself has no time zone. It is only a moment in time, whose description or representation varies depending on where on the globe you are. For example, the moment when John Lennon was pronounced dead is represented in its local time (GMT-5) as 8 December, 1980, 11:15 AM, but over on the West coast of the US, that’s 8:15 AM, and in Lennon’s place of birth, it’s 4:15 in the afternoon. He was only pronounced dead once, though — same moment, different ways of reading it.

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

Sidebar

Related Questions

Given the following code: var a = 'somegarbage=http://somesite.com/foo/bar/&moregarbage'; var result = a.match(/http.+\//g); Produces the
I have the following code: class Foo<T> where T : struct { private T
I have the following code: void foo() { vector<double> v(100,1); // line 1 //
I have the following code: public class Foo {} static class Program { [XmlElement(foo)]
If I have the following code: public class Foo { public void Bar() {
Why does the following code not allow foo(ptr) to be called ? #include <boost/scoped_ptr.hpp>
if I compile (under G++) and run the following code it prints Foo::Foo(int). However
The following code yields an error error: ‘struct Foo’ is not a valid type
I have the following test-code: CREATE TABLE #Foo (Foo int) INSERT INTO #Foo SELECT
I have the following code: [TestMethod] public void TestFoo() { Foo(null); } private void

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.