Skip to content

This is an open source calculator for counting time, built on Unity.

License

Notifications You must be signed in to change notification settings

Woolction/Time-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⏱️ Time Calculator

A time calculator built with Unity that allows you to perform mathematical operations with time values in a convenient format. It supports complex expressions, parentheses, and two different time input formats.

πŸš€ Features

  1. Time calculations.
  2. Mathematical operations: Addition (+), Subtraction (-), Multiplication (*), Division (/), Parentheses (())
  3. Two input formats
  4. Automatic result conversion
  5. Support for hours, minutes, and seconds

πŸ•’ Time Input Formats

Format with suffixes (using buttons)

In this mode, special buttons are used:

h β€” hours

m β€” minutes

s β€” seconds

Example: Input: 10h + 10m β†’ 10:10:00

You can also use seconds: 5m + 30s β†’ 00:05:30

IMPORTANT: With very large time values, errors may occur, which can cause the expression to be automatically cleared.

Standard time format

Input is entered in the following format:

00:00:00 where:

the first 2 digits β€” hours

the second 2 β€” minutes

the third 2 β€” seconds

Example: 01:30:45 + 00:15:15 β†’ 01:46:00

πŸ› οΈ Development

The project is developed in Unity. The calculator logic processes both mathematical expressions and time formats with automatic conversion to the standard HH:MM:SS format.