DF826CF4702D9DCCB9A9DD71/* Pods-1Weather.release.xcconfig */={isa=PBXFileReference;includeInIndex=1;lastKnownFileType=text.xcconfig;name="Pods-1Weather.release.xcconfig";path="Target Support Files/Pods-1Weather/Pods-1Weather.release.xcconfig";sourceTree="<group>";};
throwDecodingError.dataCorruptedError(in:valueContainer,debugDescription:"Couldn't parse time info from string \(value).")
}
letparsedHours=UInt8(nsValue.substring(with:match.range(at:1)))!// we know if will get parsed, because regexp guarantees it's two digits without a sign.
letparsedMinutes=UInt8(nsValue.substring(with:match.range(at:1)))!// same here
guardparsedMinutes>=0&&parsedMinutes<=59else{
throwDecodingError.dataCorruptedError(in:valueContainer,debugDescription:"Minute value is not acceptible: \(parsedMinutes)")
}
minutes=parsedMinutes
ifletisAm=isAm{
guardparsedHours>=1&&parsedHours<=12else{
throwDecodingError.dataCorruptedError(in:valueContainer,debugDescription:"Hour value is not acceptible for a 12h format: \(parsedHours)")
}
ifparsedHours==12{
ifisAm{
hours=0
}
else{
hours=12
}
}
else{
if!isAm{
hours=parsedHours+12
}
}
}
else{
guardparsedHours>=0&&parsedHours<=23else{
throwDecodingError.dataCorruptedError(in:valueContainer,debugDescription:"Hour value is not acceptible for a 24h format: \(parsedHours)")