I am trying to read dates/time off an excel sheet using Python, but I only want to read in the time so I can perform computations on it. For example if I have a date in the format: 3/11/2003 4:03:00 AM
on my excel sheet how can I read in just the 4:03:00
in Python? I ultimately want to be able to subtract hours, mins, or seconds from the read in time.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
The best option would be to convert the date to datetime using
xldate_as_tuple
. Assuming you have antest.xls
file with3/11/2003 4:03:00 AM
in theA1
cell:Hope that helps.