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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          152 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          89 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          131 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          127 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          107 views
          0 likes
          Last Post CarlTrading  
          Working...
          X