Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dataValues : [String:Any]?
- override func viewDidLoad() {
- super.viewDidLoad()
- dataValues = Calculations.shared.ecefToData()
- var timer = Timer()
- timer = Timer.scheduledTimer(timeInterval: 1.0, target: self, selector:#selector(self.tick) , userInfo: nil, repeats: true)
- }
- var currentTime: String = "00:00:00"
- @objc func tick() -> String {
- currentTime = DateFormatter.localizedString(from: Date(),
- dateStyle: .short,
- timeStyle: .medium)
- return currentTime
- print(currentTime)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement