Returns proper time period text for the specified time period.
Returns proper time period text for the specified time period.
1 number time
the time value.
1 string
the text.
timeline:getTimePeriodText(1) -- "1 day" timeline:getTimePeriodText(3) -- "3 days" timeline:getTimePeriodText(6) -- "1 week" timeline:getTimePeriodText(10) -- "2 weeks" timeline:getTimePeriodText(21) -- "1 month" timeline:getTimePeriodText(60) -- "3 months" timeline:getTimePeriodText(241) -- "1 year" timeline:getTimePeriodText(480) -- "2 years"