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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:33:39+00:00 2026-06-16T00:33:39+00:00

I am currently creating application which requires Current Time From the Country. I have

  • 0

I am currently creating application which requires Current Time From the Country.
I have latitude and longitude of different Country.

I have use following Link to get the Current Time

http://api.geonames.org/timezone?lat=21.7679&lng=78.8718&username=demo

(demo user name is by default and used only for testing because it has query limit)

I got the current Time but when Daylight Saving Time is ON. Is that API gives me the correct Time? If not then how could i get the current Time.

In some of the API I get the current time like earthtool(not implemented DST). But i could not Test because currently there is no DST Implemented so how can i test in this case?

I am Creating Application in .NET with C# 4.0

If any other API then please Tell Me but first priority to GeoNames API.

  • 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-16T00:33:40+00:00Added an answer on June 16, 2026 at 12:33 am

    I would be very surprised if that didn’t reflect the current local time. The results for Sao Paolo (which is currently observing DST) seem to agree with that:

    <geonames>
      <timezone tzversion="tzdata2012f">
      <countryCode>BR</countryCode>
      <countryName>Brazil</countryName>
      <lat>-23.0</lat>
      <lng>-46.0</lng>
      <timezoneId>America/Sao_Paulo</timezoneId>
      <dstOffset>-3.0</dstOffset>
      <gmtOffset>-2.0</gmtOffset>
      <rawOffset>-3.0</rawOffset>
      <time>2012-12-17 10:48</time>
      <sunrise>2012-12-17 06:14</sunrise>
      <sunset>2012-12-17 19:47</sunset>
      </timezone>
    </geonames>
    

    However, another alternative would be to use the GeoNames API to get the time zone ID, and then use Noda Time for everything to do with that time zone. (Disclaimer: I’m the primary developer of Noda Time.)

    You can’t just use the BCL’s TimeZoneInfo class directly, as that doesn’t support TZDB the time zone IDs that GeoNames provides (e.g. “Asia/Kolkata”). You could just use a mapping (CLDR provides one) but in my experience the Windows time zone information has some disturbing oddities.

    If you just need to know the current time, GeoNames is probably fine –

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

Sidebar

Related Questions

I am currently creating a java application in which I have a 2d array
I am currently creating an MVC3 application using Ninject. I have two controllers which
I am currently creating a console application which is reading from a folder which
I am currently in the process of creating an application that records current location
I'm currently studying socket programming, i'm working on creating an application to use my
What tecnology should i use? Currently i am thinking of creating a web application
We're currently using the following for creating US dollar values in our web application:
I have been tasked with creating an application for a company to store current
I am creating an application which uses a vCard struct . Currently, this struct
I have an application which needs to be able to write to Any User/Current

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.