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?
#-
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
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 =
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
?
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