Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.91 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.91 KB

Time Converter in C

This Time Converter is a C program that performs time conversions across regular time and standard methods, making it easier to work with seconds, minutes, and hours. The program accepts user input and converts time from regular time to standard method. It’s a lightweight and efficient tool built with C for simple and quick conversions.

Features

  • Insert your time as 'am' or 'pm'.
  • Convert Seconds, Minutes, and Hours into both regular time and standard time.
  • Display time in both regular time and standard time.

How to Use

  1. Clone the Repository:

    git clone https://github.com/your-username/Time-Converter.git
  2. Compile the Program:

    gcc -o Time-converter Time Converter.c
  3. Run the Program:

    ./Time converter
  4. Input Options: Follow the on-screen instructions to enter the amount of time and choose the unit you want to convert.

Example Usage

Enter your time in hours: 5
Enter your time in minutes: 30
Enter time in seconds: 48

Enter 1 for 'am' & 2 for 'pm'
Enter your choice: 2

Result:
---------------------------------------------
------------Regular time notation------------
                5 : 30 : 48 pm

------------Standard time notation-----------
                17 : 30 : 48

Contribution Guidelines

Thank you for considering contributing to this project! Here’s how you can help:

  • Reporting Issues: If you find a bug, please create an issue describing the problem and steps to reproduce it.
  • Feature Requests: Feel free to suggest new features by opening an issue.
  • Submitting Pull Requests: If you would like to make a change, fork the repository, make your changes, and submit a pull request. Be sure to provide a clear description of what the change does.

License

This Time Converter is open-source and available under the MIT License.