Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Subtract 5 hours

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Subtract 5 hours

    I am having a brain fart and need someone to bail me out of this simple but stinky mess.

    I need to subtract 5 hours from the current time. So, Time[0].Subtract(5).Hours I know the (5) is wrong...just don't know what to put in there as an argument. Maybe the whole thing is wrong...

    Please fix me.

    #2
    Mike, I would work with a negative AddHours - http://msdn.microsoft.com/en-us/libr...(v=VS.90).aspx

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Mike, I would work with a negative AddHours - http://msdn.microsoft.com/en-us/libr...(v=VS.90).aspx
      Betrand, I always appreciate working with you. You read the entire question and answer very succinctly. Thank you. I can't believe I never thought of using the negative AddHours. How simple...

      Thanks,
      Mike

      Comment


        #4
        You're welcome Mike, thanks for the kind words.

        Comment


          #5
          Oh my goodness....I just stumbled on this thread
          Bertrand....Thanks for the excellent idea!!

          (Mike...good to see another BMT brother prowling Ninja Support)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by sjsj2732, Yesterday, 04:31 AM
          0 responses
          31 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          286 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          283 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          133 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          91 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X