Kann jemand die Zeit am Ende des Standortes drucken? wenn die vollständige Lage in dem folgenden Code ausdrucken:CLLocation GeoFire Ort Zeit
Es gibt eine Zeitdifferenz zwischen der Zeit, in der Folge, während die Lage Ausdruck und die Zeit location?.timestamp
Optional:
geofire?.setLocation(location, forKey: uid) { (error) in
if (error != nil) {
print("An error occured: \(error)")
} else {
print(location)
ERGEBNIS: Optional (< + xx.xxxxxx, + xx.xxxxxxxx> +/- 5.00m (Geschwindigkeit 0,00 mps/Kurs -1,00) @ 21/11/2016, 16.04.32 Central European Standard Time)
und durch Ausdruck nur:
print(location?.timestamp)
ERGEBNIS: Optional (2016-11-21 15:04:32 +0000)
Wie nur "16.04.32 Central European Standard Time" oder sogar drucken mit dem Datum vor "21/11/2016, 16:04:32 Mitteleuropäische Standardzeit"? Danke
Mögliche Duplikat überprüfen (http://stackoverflow.com/questions/28489227/swift-ios-dates-and-times-in -unterschiedliches Format – xoudini