Python - How to convert datetime data using toordinal considering the time

Viewed 2360

Let's assume that I have the following data:

25/01/2000 05:50

When I convert it using datetime.toordinal, it returns this value:

730144

That's nice, but this value just considers the date itself. I also want it to consider the hour and minutes (05:50). How can I do it using datetime?

EDIT:

I want to convert a whole Pandas Series.

2 Answers
Related