Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TimeConversion via TimeZoneInfo

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

    TimeConversion via TimeZoneInfo

    I tried - without success -to access TimeZoneInfo class via Using System.Core to retrieve TimeZones that I would need to convert LocalTime to EasternTime, CentralTime etc. (also taking into account different starting dates for Daylight Saving Time)

    Would you have any hint how to tackle time conversion?

    #2
    Unfortunately this is beyond the level we can support. Have you checked out the MSDN article on the TimeZoneInfo class? http://msdn2.microsoft.com/en-us/lib...ezoneinfo.aspx
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Accessible form NinjaScript?

      Yes, I have read it.

      My main question is, whether access of System.Core is possible from NinjaScript, because TimeZoneInfo was not recognized.....

      Comment


        #4
        TimeZoneInfo class is on .NET 3.5. NinjaTrader is on .NET 2.0 so you will need to use the TimeZone class instead. You may also find some things you like within the System.Globalization namespace
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh, that answers my question.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          30 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          17 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          9 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          16 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          19 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X