- #1
dacruick
- 1,042
- 1
Currently I have a program in which I want to compare times. I have
dt = datetime.now()
x = dt.time()
which gives me the current time in Hours:Minutes:Seconds:MicroSeconds.
I also have variables HourStart, MinuteStart, HourEnd,MinuteEnd. Which are the hours and minutes that are the bounds of my program running.
I want to compare times. So I want to convert HourStart MinuteStart etc to time types. So if HourStart = 10 and MinuteStart = 30. I want to represent that as a time type being 10:30:00:000000
any help is appreciated
dt = datetime.now()
x = dt.time()
which gives me the current time in Hours:Minutes:Seconds:MicroSeconds.
I also have variables HourStart, MinuteStart, HourEnd,MinuteEnd. Which are the hours and minutes that are the bounds of my program running.
I want to compare times. So I want to convert HourStart MinuteStart etc to time types. So if HourStart = 10 and MinuteStart = 30. I want to represent that as a time type being 10:30:00:000000
any help is appreciated