subject

In the following example, current_timestamp contains a string which represents a timestamp of the format '%Y-%m-%d %H:%M:%S'. Here 'Y' is for 'Year', 'm' is for 'Month', 'd' is for 'Day', 'H' is for 'Hour' and 'M' is for 'Minute'. For example, in the timestamp "2019-09-12 23:43:58", Year is "2019", Month is "09", Day is "12", Hour is "23" and Minute is "43". Can you write a program to extract the Hour and Minute from this timestamp? So, the code will print this: The Hour is: 23 The Minute is: 43 (Try to check your code in Python Console/Editor). Hints: You can use the split() method.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
You know the right answer?
In the following example, current_timestamp contains a string which represents a timestamp of the fo...
Questions
question
Mathematics, 22.09.2020 14:01
question
Mathematics, 22.09.2020 14:01
Questions on the website: 13722360