Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Displaying The time Zone

Displaying The time Zone

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brucewayn
    wrote on last edited by
    #1

    I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance

    _ I 2 Replies Last reply
    0
    • B brucewayn

      I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      I'm not very clear about your question, but if you want to be notified when the time zone changes, look at WM_TIMECHANGE.

      «_Superman_»

      1 Reply Last reply
      0
      • B brucewayn

        I wanted to display the time zone set by the system on a dialog in static text. For example : The time zone in India is (GMT+05:30) Chennai, Kolkata, Mumbai , NewDelhi. Now if I change it to some other like (GMT+09:00)Osaka, Sapporo, Tokoyo. Then I want this statement to be appeared after refersh. Please let me know how can it be possible??? Thanks in Advance

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        GetTimeZoneInformation will give you the (+900) part - but not the city list. I suspect that only lives in the common dialog used, so you may be out of luck. Iain.

        Codeproject MVP for C++, I can't believe it's for my lounge posts...

        B 1 Reply Last reply
        0
        • I Iain Clarke Warrior Programmer

          GetTimeZoneInformation will give you the (+900) part - but not the city list. I suspect that only lives in the common dialog used, so you may be out of luck. Iain.

          Codeproject MVP for C++, I can't believe it's for my lounge posts...

          B Offline
          B Offline
          brucewayn
          wrote on last edited by
          #4

          For now i think that can be enough. Can you give me any sample code using that function.

          I 1 Reply Last reply
          0
          • B brucewayn

            For now i think that can be enough. Can you give me any sample code using that function.

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            Not without reading the documentation page, calling the function, looking at the contents of the TIME_ZONE_INFORMATION. All of which you can do yourself. (It's not a function I've used, it's one I found on msdn) Iain.

            Codeproject MVP for C++, I can't believe it's for my lounge posts...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups