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. Zonal Id

Zonal Id

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 Posts 2 Posters 2 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.
  • J Offline
    J Offline
    john5632
    wrote on last edited by
    #1

    Hi, How can I get zonal id like "America/New_York" in c++?

    C 1 Reply Last reply
    0
    • J john5632

      Hi, How can I get zonal id like "America/New_York" in c++?

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      Do you mean GetTimeZoneInformation function (timezoneapi.h) - Win32 apps | Microsoft Learn[^]?

      "In testa che avete, Signor di Ceprano?" -- Rigoletto

      J 1 Reply Last reply
      0
      • C CPallini

        Do you mean GetTimeZoneInformation function (timezoneapi.h) - Win32 apps | Microsoft Learn[^]?

        "In testa che avete, Signor di Ceprano?" -- Rigoletto

        J Offline
        J Offline
        john5632
        wrote on last edited by
        #3

        no, this will return result in DWORD, I am looking for zone name in a string.

        C 1 Reply Last reply
        0
        • J john5632

          no, this will return result in DWORD, I am looking for zone name in a string.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          From the linked page:

          Parameters [out] lpTimeZoneInformation A pointer to a TIME_ZONE_INFORMATION structure to receive the current settings.

          So, have a look at TIME_ZONE_INFORMATION (timezoneapi.h) - Win32 apps | Microsoft Learn[^] as well.

          "In testa che avete, Signor di Ceprano?" -- Rigoletto

          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