For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
dates
-
print(d.datetime.get(0, size=3))
outputs something like this:
array('d', [736422.9999999999, 736423.9999999999, 736424.9999999999])
The part of the number before the decimal point seems to be an ordinal date representation. But i'm not sure about the part after the decimal point.
How would one convert this back into a datetime?
Thanks.
-
Please take a look at the following post:
https://community.backtrader.com/topic/2433/transformation-from-datetime-float-to-datetime-type?_=1614783991179 -
Thanks. Perfect