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. Dates are wonderful

Dates are wonderful

Scheduled Pinned Locked Moved The Lounge
25 Posts 17 Posters 27 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.
  • H H Brydon

    That is called comparison time format or (almost) ISO 8601[^].

    -- Harvey

    J Offline
    J Offline
    Jan Steyn
    wrote on last edited by
    #21

    And the only format you can safely used around me. I might harm you if you use any other format.

    1 Reply Last reply
    0
    • T tumbledDown2earth

      Dates are really wonderful until you get into date-time formats, time-zones and localization and formatted strings

      Mike HankeyM Offline
      Mike HankeyM Offline
      Mike Hankey
      wrote on last edited by
      #22

      Until they start talking about there exex, how they hate when a man doesn't leave the seat up, etc... Oh DateTime...never mind!

      VS2010/Atmel Studio 6.1 ToDo Manager Extension Some days, it's just not worth chewing through the restraints.

      1 Reply Last reply
      0
      • T tumbledDown2earth

        Dates are really wonderful until you get into date-time formats, time-zones and localization and formatted strings

        T Offline
        T Offline
        tumbledDown2earth
        wrote on last edited by
        #23

        So finally there are 3 known kinds of dates (at least in English) ...

        1 Reply Last reply
        0
        • T tumbledDown2earth

          Dates are really wonderful until you get into date-time formats, time-zones and localization and formatted strings

          B Offline
          B Offline
          Brady Kelly
          wrote on last edited by
          #24

          Or when you have to randomize dates and times to reflect real world scenarios, like a car's time in a parkade.

          1 Reply Last reply
          0
          • L Lost User

            tumbledDown2earth wrote:

            Dates are really wonderful until you get into date-time formats, time-zones and localization and formatted strings

            As an unformatted Double, it's beauty. It's the localized representations that suck.

            Console.WriteLine("Posted on star-date: {0}", DateTime.Now.ToOADate());
            Posted on star-date: 41386,8388463889

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            B Offline
            B Offline
            BobJanova
            wrote on last edited by
            #25

            Best thing about this post: even your output has suffered from localisation!

            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