I wonder if there is any function that returns the difference in minutes for examples like this:

1300-1515 (135 minutes)

2350-0100 (70 minutes)

Is there any timefunction that can have the ability to return the minutedifference ?

Recommended Answers

All 5 Replies

I wonder if there is any function that returns the difference in minutes for examples like this:

1300-1515 (135 minutes)

2350-0100 (70 minutes)

Is there any timefunction that can have the ability to return the minutedifference ?

I don't think there is. It shouldn't be hard to make one yourself tho :)

Okay, I will try to make something manually and see what I can come up with.

I wonder if there is any function that returns the difference in minutes for examples like this:

1300-1515 (135 minutes)

2350-0100 (70 minutes)

Is there any timefunction that can have the ability to return the minutedifference ?

Are you sure those calculations are correct?

The difftime function returns the difference expressed in seconds as a double.

Are you sure those calculations are correct?

It is clock time.. 0100 = 01:00, so 1AM :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.