Question: Write a C++ program that displays current time in GMT in the format hour:minute:secondsuch as 1:45:19.The time(0)function in the ctime header file returns the current

Write a C++ program that displays current time in GMT in the format hour:minute:secondsuch as 1:45:19.The time(0)function in the ctime header file returns the current time in seconds elapsed since the time 00:00:00 on January 1, 1970 GMT,. This time is known as the Unix epoch because 1970 was the year when the Unix operating system was formally introduced.

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!