I'm working with CKSubscription. I set alertLocalizationArgs array for a date property. When I would like to get the date from alertLocalizationArgs, I get 6.71963003895015E8. I don't know what is that. It cannot be a double beacsue the string contains "E". Any ideas? Thank you in advance.
CodePudding user response:
6.71963003895015E8
is scientific notation and is the same as 671963003.895015
And
Date(timeIntervalSinceReferenceDate: 671963003.895015)
is today, April 18, 2022.