Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 17th, 2017
69
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
func convertToTime(_ value: Int) -> String {
print(value) // 902
var text = String(format: "%02d", value)
text.insert(":", at: text.index(text.startIndex, offsetBy: +2))
return text
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C# | 9 min ago | 4.54 KB
Untitled
TypeScript | 16 min ago | 2.13 KB
?.?
JavaScript | 25 min ago | 6.66 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 60 min ago | 0.39 KB
Untitled
Java | 1 hour ago | 1.72 KB
Splah Layout
XML | 2 hours ago | 0.31 KB
AI-GENERATE2.pyw
Python | 3 hours ago | 3.50 KB
(autohotkey) bouncing deskop cat friend
Autohotkey | 3 hours ago | 3.07 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!