I am taking Advanced Crypto Trading module here. When I imported the Bitcoin historical minutes data with ten digits from other source, I found that the time data can't be read correctly. Anyone can help?
You can use pandas (use pd.Timestamp(int(t), unit='s'), the unix time is in seconds from the epoch) or the python datetime module (use the function - datetime.utcfromtimestamp(t) for datetime.datetime format). Both expects number input for t.