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. I don't have the CTime for this!

I don't have the CTime for this!

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

    Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).

    R 1 Reply Last reply
    0
    • R rw104

      Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).

      R Offline
      R Offline
      rw104
      wrote on last edited by
      #2

      Sorry regarding the e.g. e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 05.00am (GMT +4:00 DST).

      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