Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Swift
swift string time to epoch
Laurent Duval
Programming language:
Swift
2021-02-28 16:20:43
0
Q:
swift string time to epoch
laugh
Code:
Swift
2021-02-28 16:23:01
let date = NSDate() // current date let unixtime = date.timeIntervalSince1970
0
Tags
string
time
Related
swift wait 5 seconds
string to decimal swift
swift append to start of string
time formats swift
swift + time delay call main thread
convert secondsfrom1970 to date swift
get current unix timestamp swift ios
swift get current time
get day start time in swift
swift get current hour
date format swift
settimeout in swift
convert string to int swift
New to Communities?
Join the community