Swiftpack.co - crafter999/seconds2Human as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by crafter999.
crafter999/seconds2Human 0.1.1
Convert seconds to readable format
⭐️ 0
🕓 2 weeks ago
.package(url: "https://github.com/crafter999/seconds2Human.git", from: "0.1.1")

seconds2Human

Convert seconds to readable format

Example 1

seconds2Human(number: 2160000, compact: true)
// Returns: 25d

Example 2

seconds2Human(number: 3600)
// Returns: 1 hour

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics