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. The Lounge
  3. Ask what Date is it?

Ask what Date is it?

Scheduled Pinned Locked Moved The Lounge
algorithmsquestion
9 Posts 5 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.
  • M Offline
    M Offline
    Michael Pauli
    wrote on last edited by
    #1

    Silly as it may sound: Are anyone exposing the current UTC-date on the internet so it can be accessed through say a webservice or something. I've been searching for days for this but I don't get anywhere. Kind regards,

    Michael Mogensen

    P C S 3 Replies Last reply
    0
    • M Michael Pauli

      Silly as it may sound: Are anyone exposing the current UTC-date on the internet so it can be accessed through say a webservice or something. I've been searching for days for this but I don't get anywhere. Kind regards,

      Michael Mogensen

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      You could get DateTime.Now as UTC if you like.

      M 1 Reply Last reply
      0
      • M Michael Pauli

        Silly as it may sound: Are anyone exposing the current UTC-date on the internet so it can be accessed through say a webservice or something. I've been searching for days for this but I don't get anywhere. Kind regards,

        Michael Mogensen

        C Offline
        C Offline
        ColinM123
        wrote on last edited by
        #3

        Tuesday, 13th January 2009. Your welcome ;P

        Online Guitar Tools

        R 1 Reply Last reply
        0
        • C ColinM123

          Tuesday, 13th January 2009. Your welcome ;P

          Online Guitar Tools

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          :laugh: :laugh: Do you work for Microsoft?

          "A Journey of a Thousand Rest Stops Begins with a Single Movement"

          1 Reply Last reply
          0
          • M Michael Pauli

            Silly as it may sound: Are anyone exposing the current UTC-date on the internet so it can be accessed through say a webservice or something. I've been searching for days for this but I don't get anywhere. Kind regards,

            Michael Mogensen

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Try NTP[^] - that's what Windows and OS X and probably Linux use to set clock time from authoritative sources. [edit]An HTTP based alternativer: HTTP Time Protocol[^].[/edit]

            M 1 Reply Last reply
            0
            • P PIEBALDconsult

              You could get DateTime.Now as UTC if you like.

              M Offline
              M Offline
              Michael Pauli
              wrote on last edited by
              #6

              I suppose that's (only) the end-user-OS time - right?

              Michael Mogensen

              P 1 Reply Last reply
              0
              • S Stuart Dootson

                Try NTP[^] - that's what Windows and OS X and probably Linux use to set clock time from authoritative sources. [edit]An HTTP based alternativer: HTTP Time Protocol[^].[/edit]

                M Offline
                M Offline
                Michael Pauli
                wrote on last edited by
                #7

                Thanks - think I can use this. Back to winsock(s)32 again :-)

                Michael Mogensen

                1 Reply Last reply
                0
                • M Michael Pauli

                  I suppose that's (only) the end-user-OS time - right?

                  Michael Mogensen

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  If the system is in sync there should be no problem.

                  M 1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    If the system is in sync there should be no problem.

                    M Offline
                    M Offline
                    Michael Pauli
                    wrote on last edited by
                    #9

                    But if the user are cheating there is. I need this info to get a program registration right. Using a UDP winsock one can get the official time here: Area: HostName: Worldwide pool.ntp.org Asia asia.pool.ntp.org Europe europe.pool.ntp.org North America north-america.pool.ntp.org Oceania oceania.pool.ntp.org South America south-america.pool.ntp.org I've tested it yesterday and it works! (NTP (network time protocol) Uses UDP instead of the usual TCP) Kind regards,

                    Michael Mogensen

                    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