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. Today's news and then daily build - MoreDateTime

Today's news and then daily build - MoreDateTime

Scheduled Pinned Locked Moved The Lounge
csharpcomannouncement
13 Posts 8 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.
  • O obermd

    Sounds like someone here tried to resolve today's insider news [xkcd: DateTime](https://xkcd.com/2867) [MoreDateTime - ExtendedDateTime Extension Library for .NET](https://www.codeproject.com/Articles/5369084/MoreDateTime-ExtendedDateTime-Extension-Library-fo)

    J Offline
    J Offline
    Julian Ragan
    wrote on last edited by
    #4

    I really don't understand this one, I have solved this kind of problem multiple times in different languages on different platforms.

    Mircea NeacsuM 1 Reply Last reply
    0
    • J Julian Ragan

      I really don't understand this one, I have solved this kind of problem multiple times in different languages on different platforms.

      Mircea NeacsuM Offline
      Mircea NeacsuM Offline
      Mircea Neacsu
      wrote on last edited by
      #5

      Julian Ragan wrote:

      I have solved this kind of problem multiple times

      Really? Did you account for all possible issues: - are T1 and T2 in the same time zone? - did Daylight Saving Time occur between T1 and T2? - did rules for DST changed between T1 and T2? - where any leap second jumps between T1 and T2? Randall knows best :D

      Mircea

      J O P 3 Replies Last reply
      0
      • Mircea NeacsuM Mircea Neacsu

        Julian Ragan wrote:

        I have solved this kind of problem multiple times

        Really? Did you account for all possible issues: - are T1 and T2 in the same time zone? - did Daylight Saving Time occur between T1 and T2? - did rules for DST changed between T1 and T2? - where any leap second jumps between T1 and T2? Randall knows best :D

        Mircea

        J Offline
        J Offline
        Julian Ragan
        wrote on last edited by
        #6

        Oh dear, seems I have never needed that much accuracy after all. And in some cases such deliberations would not be possible on target platform.

        1 Reply Last reply
        0
        • Mircea NeacsuM Mircea Neacsu

          Julian Ragan wrote:

          I have solved this kind of problem multiple times

          Really? Did you account for all possible issues: - are T1 and T2 in the same time zone? - did Daylight Saving Time occur between T1 and T2? - did rules for DST changed between T1 and T2? - where any leap second jumps between T1 and T2? Randall knows best :D

          Mircea

          O Offline
          O Offline
          obermd
          wrote on last edited by
          #7

          Don't forget Are T1 and T2 in the same relativistic frame?

          P B 2 Replies Last reply
          0
          • O obermd

            Don't forget Are T1 and T2 in the same relativistic frame?

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

            And how many commercial breaks were there during that period?

            1 Reply Last reply
            0
            • Mircea NeacsuM Mircea Neacsu

              Julian Ragan wrote:

              I have solved this kind of problem multiple times

              Really? Did you account for all possible issues: - are T1 and T2 in the same time zone? - did Daylight Saving Time occur between T1 and T2? - did rules for DST changed between T1 and T2? - where any leap second jumps between T1 and T2? Randall knows best :D

              Mircea

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

              Always interchange and compare dates/times in UTC. I wouldn't bother with leap seconds unless you need to know the seconds, and you generally don't.

              Mircea NeacsuM 1 Reply Last reply
              0
              • P PIEBALDconsult

                Always interchange and compare dates/times in UTC. I wouldn't bother with leap seconds unless you need to know the seconds, and you generally don't.

                Mircea NeacsuM Offline
                Mircea NeacsuM Offline
                Mircea Neacsu
                wrote on last edited by
                #10

                I agree with you, but I know some people in the lounge were arguing for using local time. Go figure!

                Mircea

                P 1 Reply Last reply
                0
                • Mircea NeacsuM Mircea Neacsu

                  I agree with you, but I know some people in the lounge were arguing for using local time. Go figure!

                  Mircea

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

                  Say it ain't so. Probably the sort who wear digital watches and read off the exact time to the second. :rolleyes:

                  1 Reply Last reply
                  0
                  • O obermd

                    Don't forget Are T1 and T2 in the same relativistic frame?

                    B Offline
                    B Offline
                    BernardIE5317
                    wrote on last edited by
                    #12

                    to continue the Relativistic vein though perhaps you are previously aware it is interesting / curious to note the speed of light is impossible to measure . Why No One Has Measured The Speed Of Light - YouTube[^]

                    1 Reply Last reply
                    0
                    • O obermd

                      Sounds like someone here tried to resolve today's insider news [xkcd: DateTime](https://xkcd.com/2867) [MoreDateTime - ExtendedDateTime Extension Library for .NET](https://www.codeproject.com/Articles/5369084/MoreDateTime-ExtendedDateTime-Extension-Library-fo)

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #13

                      At some point it is not possible to generalize this sort thing. I worked on a system where a work flow needed to be resolved within '3 business days'. So a casual developer is going to look at that and perhaps understand it means 'skip the weekends' But in fact it is quite a bit more complex. - A business day consisted of 8 hours. - Holidays were not business days. (This of course required adding a complete sub-system to allow them to specify holidays.) - A work flow could be started in California but would be viewed and acted upon in New York. So obviously time zones were relevant. Also consider the complications for the following sort of report - Company operates brick and mortar stores across the country - Company has an online site to order products - VP asks for a report that summarizes sales during the 'lunch hour'

                      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