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.
- Time Calculation: Add multiple time entries in
hh:mm:ss
orhh:mm
format and get the total time worked. - Price Calculation: Enter your hourly rate to calculate your total price based on the time worked.
- Enter Times: Input multiple time entries in the format
hh:mm:ss
. - Calculate Total Time: The program will sum up all the entered times and display the total.
- Calculate Earnings: Enter your hourly rate, and the program will compute your total earnings based on the total time worked.
Here’s a screenshot of the program showing how the program works:
You can download the executable files for Windows and macOS:
If you want to compile the application yourself, follow these instructions:
dart compile exe lib/time_calculator.dart
-
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 requiredartaotruntime
. -
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.