I'm creating a method that is reliant on a certain amount of time having elapsed. It has to be readable by a non-technical person, so the time has to be in days
let daysBetweenRequests = 130
But for that to work with an TimeInterval comparison, it needs to be in milliseconds. In Objective-C or Swift, is there an equivalent to Java's TimeUnit class that will perform the conversion of days to milliseconds for me, or do I need to roll the conversion myself? Something like:
let daysAsMilliseconds = TimeConverter.convert(from: daysBetweenRequests, to: .milliseconds)
I'm fine doing it, but it seems like there would be a built-in, and I can't seem to find one. Thanks!