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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          33 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
          285 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