RE: Subtracting dates to get hours and minutes

2022-12-13 Thread Gronicus
As is, Test A works. Comment out Test A and uncomment Test B it fails. In Test B, I move the data into a variable resulting with the report: "TypeError: an integer is required (got type tuple) How do I fix this? #-

RE: Subtracting dates to get hours and minutes

2022-12-13 Thread Gronicus
e.datetime(st1) dts1 == Startt # True On 12/13/2022 10:43 PM, Gronicus@SGA.Ninja wrote: > As is, Test A works. > Comment out Test A and uncomment Test B it fails. > In Test B, I move the data into a variable resulting with the report: > "TypeError: an integer

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
lue for the first argument, but you supplied a tuple. In Python, you can use a sequence (e.g., tuple or list) the way you want by prefixing it with an asterisk. This causes the sequence of items to be treated as individual arguments. So: Startt = datetime.datetime(2022, 12, 13, 5, 3, 30) st1 =

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
PM To: Gronicus@SGA.Ninja Subject: RE: Subtracting dates to get hours and minutes What is likely happening is that when you read the data from the file you are not reading a tuple, you are reading a 26 charcter string. You have to convert that string into a tuple - the easiest way will be

RE: Subtracting dates to get hours and minutes

2022-12-15 Thread Gronicus
? From: anthony.flury Sent: Thursday, December 15, 2022 1:47 PM To: Gronicus@SGA.Ninja Subject: RE: Subtracting dates to get hours and minutes What is likely happening is that when you read the data from the file you are not reading a tuple, you are reading a 26 charcter string. You have to