What is 8 hours, 5 minutes, 22 seconds minus (-) 7 hours, 24 minutes, 37 seconds?

8 hrs 5 mins 22 secs
- 7 hrs 24 mins 37 secs
————————————

Answers

Answer 1

Answer:

Enter time 1 HH:MM:SS8:5:22                                                                                                    

Enter time 2 HH:MM:SS7:24:37                                                                                                  

0:40:45

Explanation:

The program for above in Python is:

from datetime import datetime

s1 = input("Enter time 1 HH:MM:SS")

s2 = input("Enter time 2 HH:MM:SS")

Format1 = '%H:%M:%S'

tdiff = datetime.strptime(s1, Format1) - datetime.strptime(s2, Format1)

print(tdiff)

We are using the datetime class in datetime module for using strptime to find the difference between the two times.


Related Questions

Other Questions
Ithilium, a European country, is able to produce more electronics than Kilim, a North American country, even though both countries use the same amount of resources. Given this information, it can be deduced that Ithilium has a(n): What type of thinking could be described as taking different directions in search of a variety of answers to a question? 2 Grade 11 Physics Questions. Will Mark BRAINLIEST!!!Which machine would be an alternative to lifting a crate with a pulley?Ramp ScrewDoorstopAxWhich of the following is an example of a simple machine?BicycleCar Steering wheel system of a boatRamp For a given gene in a population, there are two alleles, A and a. The frequency of the dominant homozygote, AA, is 0.50; the frequency of the heterozygote, Aa, is 0.20; and the frequency of the recessive homozygote, aa, is 0.30. What is the frequency of the recessive a allele? A class will have 1 test and 5 homework assignments to complete. If the test is worth 80 points and each homework assignment is work 25% of the test, how many points may be earned during this unit? The defendant is charged with the battery of a bouncer at a local tavern. At the trial, the prosecutor introduces evidence that while the bouncer was attempting to question the defendant about her intoxicated demeanor, the defendant committed a battery on the bouncer. The defendant attempts to defend against the charge on the basis of self-defense, insisting that the bouncer used excessive force in stopping her from entering the tavern. The defendant attempts to introduce into evidence an authenticated copy of the tavern records that show that three patrons had written complaints against the bouncer within the past six months for the use of excessive force. The prosecutor objects on the grounds that the records are inadmissible character evidence. Should the court sustain the objection? Identify the domain and range of the inverse of f(x) = 0.5^x. Susan is buying black and green olives from the Olive bar for her party. She buys 4 pounds of olives. Black olives cost three dollars a pound. Green olives cost five dollars a pound. She spends $15.50. How many pounds of each type of olives does she buy? Write and solve a system of equations. Give the answer to in context of the problem. How does Creons statement, "I call God to witness" serve as ethos in the context of the speech? A hot dog vendor sells an average of 50 hot dogs during a Little League baseball game. If the sales are Normally distributed with a standard deviation of 7 hot dogs, what is the probability the vendor will sell between 45 and 65 hot dogs? Show your work. You have a freshly prepared 1 M (molar) solution of glucose in water. You carefully pour out a 100 mL sample of that solution. How many glucose molecules are included in that 100 mL sample? A Mother who is homozygous for Huntington's disease and a father who is homozygous normal want to have a baby. What genotypes and phenotypes are possible for their child? Show punnet square A gas had an initial pressure of 4.80atm in a 5.50L container. After transfering it to a 9.60L container, the gas was found to have a pressure of 2.10atm and a temperature of 25.00C. What was the initial temperature in degrees Celsius? Of the air conditioner repair shops listed in a particular phone book, 87% are competent. A competent repair shop can repair an air conditioner 85% of the time; an incompetent shop can repair an air conditioner 60% of the time. Suppose the air conditioner was repaired correctly. A. Find the probability that it was repaired by a competent shop, given that it was repaired correctly. 2453 minus 249 equals The Missouri Compromise refers to an Antebellum-era agreement that was made in 1820.A. Explain the purpose of the Missouri Compromise.B. Describe the effects of the Missouri Compromise.( Please don't say A or B, it's not that kind of question :( ) The _______________________________ is the primary decision making process for identifying hazards and controlling risks across the full spectrum of military missions, functions, operations, and activities. I need help with this asap.4a, b, c Companies and managers take a(n) _____ approach to stay within the law and abide strictly by legal requirements but make no attempt to exercise social responsibility beyond what the law dictates. An industry is defined as: a. firms producing items that sell through the same distribution channels. b. firms that sell the same products or services to the same customer base. c. a group of firms producing the same products or services. d. a group of firms producing products that are close substitutes.