How would you write: hour(s) (and) minute(s) in a sentence? Is there a clean solution?
Like: There are 12hrs and 1min left.
I have a $difference value to convert (seconds between two timestamps.)
Examples of desired output:
- 3hrs and 12mins
- 1hr and 1min
- 12hrs
- 43mins
- 1hr
- 1min
NOT:
- 3hrs and 1mins
- 1hrs and 0mins
- 0hrs and 0mins