Adverbs of frequency, Dates

Hi community:

Thanks for readme. I want to achieve get an adverb of frequency from a time interval or date component. So if I have something that measure one week, I want to get "weekly" as result, the same for 2 weeks "bi-weekly", month "monthly" and so on.

Is there any foundation API to get it?

Thanks in advance

Answered by in 754038022

This would be a great addition. Please submit a feedback request, including the granularity of time intervals and potential purposes you'd use this for, and then include the FB number in this thread.

I don't know of such API (similar to isDateInYesterday).

But it is should be easy to write an extension to Calendar to do it.

Accepted Answer

This would be a great addition. Please submit a feedback request, including the granularity of time intervals and potential purposes you'd use this for, and then include the FB number in this thread.

FB12204237

Adverbs of frequency, Dates
 
 
Q