Skip to content

Latest commit

 

History

History
executable file
·
72 lines (43 loc) · 2.25 KB

README.md

File metadata and controls

executable file
·
72 lines (43 loc) · 2.25 KB

Time Calculator

Time Calculator is a simple Dart application designed to help you calculate the total time you’ve worked by entering multiple time entries. Additionally, it calculates your earnings based on an hourly rate.

Table of Contents

Features

  • Time Calculation: Add multiple time entries in hh:mm:ss or hh:mm format and get the total time worked.
  • Price Calculation: Enter your hourly rate to calculate your total price based on the time worked.

How to Use

  1. Enter Times: Input multiple time entries in the format hh:mm:ss.
  2. Calculate Total Time: The program will sum up all the entered times and display the total.
  3. Calculate Earnings: Enter your hourly rate, and the program will compute your total earnings based on the total time worked.

Screenshots

Here’s a screenshot of the program showing how the program works:

time_calculator_example_gif

Download

You can download the executable files for Windows and macOS:

Exporting Executable

If you want to compile the application yourself, follow these instructions:

For Windows:

dart compile exe lib/time_calculator.dart

For macOS:

  1. Compile the Dart script into a native executable:

    dart compile exe lib/time_calculator.dart -o time_calculator

    This generates a native executable (time_calculator) that doesn't require dartaotruntime.

  2. Make the file executable:

 chmod +x time_calculator

You can directly execute the time_calculator file from the terminal without additional commands. This is a more robust solution for production use.

For more details, see the Dart dartaotruntime documentation.