Jump to content
Bindlex

Clock calculate between 2 combo

Recommended Posts

Bindlex

Hello everybody,

 

I have a variable $hour

I have 2 combo where you can select the hour (for example in the first combo i select 16:00 and in the second 08:00)

When I click a button I want to calculate the number of hours between the first and the second time. (only hours, not minutes)

 

Thank you,

Regards!

Share this post


Link to post
Share on other sites
Bilgus

Id suggest using subtraction.

Share this post


Link to post
Share on other sites
IAMK

To add to what Bilgus said, the date is also important.
Your answer can either be 10 hours or 14 hours.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×