Open LilMoke opened 4 years ago
Hello,
I am receiving the message: 'dateComponents' is inaccessible due to 'internal' protection level
on the following line:
let datePeriod = TimePeriod(beginning: startDate!, chunk: TimeChunk.dateComponents(minutes: duration))
I understand why, but how can I accomplish creating a TimeChunk from the minutes?
duration.minutes
And that returns TimeChunk. No need to initialize it like that.
Ahhhh yes!! I see, thnank you.
Hello,
I am receiving the message: 'dateComponents' is inaccessible due to 'internal' protection level
on the following line:
let datePeriod = TimePeriod(beginning: startDate!, chunk: TimeChunk.dateComponents(minutes: duration))
I understand why, but how can I accomplish creating a TimeChunk from the minutes?