Does anyone knows how to print the time at the end of the Location? when printing out the full location in the following code:
There is a time difference between the time in the result while printing out the Location and the time location?.timestamp
Optional:
geofire?.setLocation(location, forKey: uid) { (error) in
if (error != nil) {
print("An error occured: \(error)")
} else {
print(location)
RESULT: Optional(<+xx.xxxxxx,+xx.xxxxxxxx> +/- 5.00m (speed 0.00 mps / course -1.00) @ 21/11/2016, 16:04:32 Central European Standard Time)
and by printing out only:
print(location?.timestamp)
RESULT:Optional(2016-11-21 15:04:32 +0000)
How to print only "16:04:32 Central European Standard Time" or even with the date before "21/11/2016, 16:04:32 Central European Standard Time" ? Thanks