Mercurial > public > lazybear
comparison LazyBear/Global functions/ConvertEpoch.swift @ 455:b560babcd5ed
WatchOS views implemented
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 28 Jun 2021 11:55:19 +0200 |
parents | f71761f166f2 |
children | c6913f0ce46e |
comparison
equal
deleted
inserted
replaced
454:c79a3ed3d230 | 455:b560babcd5ed |
---|---|
15 | 15 |
16 // TimeInterval() function must be in seconds, not in miliseconds | 16 // TimeInterval() function must be in seconds, not in miliseconds |
17 let convertedDate = Date(timeIntervalSince1970: TimeInterval(miliseconds/1000)) | 17 let convertedDate = Date(timeIntervalSince1970: TimeInterval(miliseconds/1000)) |
18 | 18 |
19 let formatter = DateComponentsFormatter() | 19 let formatter = DateComponentsFormatter() |
20 formatter.unitsStyle = .short | 20 formatter.unitsStyle = .abbreviated |
21 | 21 |
22 let dateFormatter = DateFormatter() | 22 let dateFormatter = DateFormatter() |
23 dateFormatter.dateStyle = .medium | 23 dateFormatter.dateStyle = .medium |
24 | 24 |
25 var humanDate = String() | 25 var humanDate = String() |