Re: [Python.NET] Passing a C# DateTime object to a Python script

2018-06-07 Thread Denis Akhiyarov
There is a pythonnet branch with datetime conversion implementation. Is this what you are looking for? https://github.com/QuantConnect/pythonnet/pull/8/files On Wed, May 30, 2018, 2:26 PM Ian Hannah wrote: > Hi, > > > > I have a simple python script: > > > > def test(datetime_or_doy): > >

[Python.NET] Passing a C# DateTime object to a Python script

2018-05-30 Thread Ian Hannah
Hi, I have a simple python script: def test(datetime_or_doy): print datetime_or_doy.strftime('%m/%d/%Y') and I am using Python for .NET to try and call this method as follows: dynamic np = Py.Import(@"pvlib"); double d = np.irradiance.test(DateTime.Now); and I