VOOZH about

URL: https://www.geeksforgeeks.org/c/c-program-to-display-time-in-different-country-format/

⇱ C Program to Display time in Different Country Format - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C Program to Display time in Different Country Format

Last Updated : 27 Nov, 2022

In this article, we will see the time of the different countries. The calculation is based relative to Indian Time. Simple conversion is done between hours, minutes, and seconds. the code includes the 24hr format

The below code considers the following countries' examples:

  1. Singapore.
  2. Newyork.
  3. China.
  4. Japan.
  5. Saudi Arabia.

In the below code, all calculations are done after converting time into seconds. Below is the C program to display time in the different country formats:


Output:

👁 C Program to Display time in Different Country Format
 
Comment
Article Tags: