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. Database & SysAdmin
  3. System Admin
  4. Any Windows API related to daylight saving available?

Any Windows API related to daylight saving available?

Scheduled Pinned Locked Moved System Admin
jsonquestion
4 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.
  • P Offline
    P Offline
    PrashantJ
    wrote on last edited by
    #1

    Hi, I was looking for an Windows API which would take the current date/time, local time zone and return true/false indicating whether the current time / time-zone is using daylight saving or not. If no API is available pls direct me to some useful links Thanks.

    S D 2 Replies Last reply
    0
    • P PrashantJ

      Hi, I was looking for an Windows API which would take the current date/time, local time zone and return true/false indicating whether the current time / time-zone is using daylight saving or not. If no API is available pls direct me to some useful links Thanks.

      S Offline
      S Offline
      Steve S
      wrote on last edited by
      #2

      You could use GetSystemTime and GetLocalTime, and see if they are the same. Steve S Developer for hire

      P 1 Reply Last reply
      0
      • S Steve S

        You could use GetSystemTime and GetLocalTime, and see if they are the same. Steve S Developer for hire

        P Offline
        P Offline
        PrashantJ
        wrote on last edited by
        #3

        Okay Thanks

        1 Reply Last reply
        0
        • P PrashantJ

          Hi, I was looking for an Windows API which would take the current date/time, local time zone and return true/false indicating whether the current time / time-zone is using daylight saving or not. If no API is available pls direct me to some useful links Thanks.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          See GetTimeZoneInformation().


          "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

          "Judge not by the eye but by the heart." - Native American Proverb

          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