Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countdown with time over 24 hours #23

Closed
anhhtbk opened this issue Jun 7, 2017 · 1 comment
Closed

Countdown with time over 24 hours #23

anhhtbk opened this issue Jun 7, 2017 · 1 comment
Labels

Comments

@anhhtbk
Copy link

anhhtbk commented Jun 7, 2017

How to countdown with time over 24 hours with format "HH:mm:ss"
Example show 35:23:23

@anhhtbk
Copy link
Author

anhhtbk commented Jun 7, 2017

I resolved my problem with other repository: (https://github.com/mineschan/MZTimerLabel)

func timerLabel(_ timerLabel: MZTimerLabel!, customTextToDisplayAtTime time: TimeInterval) -> String! {
        let seconds = time.truncatingRemainder(dividingBy: 60)
        let minutes = (time / 60).truncatingRemainder(dividingBy: 60)
        let hours = time / 3600
        return String(format: "%02.0f:%02.0f:%02.0f", hours, minutes, seconds)
    }

@anhhtbk anhhtbk closed this as completed Jun 7, 2017
pblondin added a commit to pblondin/CountdownLabel that referenced this issue Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants