I try to print a time period with format like this : "2 years, 3 months, 15 days, 23 hours, 15 min and 35 sec". I want to use these date/time abbrev (words) for another purposes too ... Is it possible to get abbrev for "years", "months" and so on from Locale (regional), so the output be are more friendly with different regional setings ? Thank you in advance !
Abbrev. (words) for "year", "month" and so on from Locale
82 views Asked by Bino At
1
This NSDate+TimesAgo category provides localized strings in times ago format e.g. a moment ago, 5 seconds ago etc as given below
5 You might need to edit it to achieve your purpose. Please check license clause.