Discuss the below:
Q: Create a function method named GetTimeParts. The function method should get the time of the day from the system, and return a structure having the following elements: CurrentHour, CurrentMinute, and CurrentSecond. Declare the structure, and give it the name CurrentTime. The code in the function method should get the time of day and then store the current hour, minute, and second in the structure members.
Use VB.NET programming