Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateToolsSwift #259

Open
AjayHegdeK opened this issue Apr 13, 2018 · 0 comments
Open

DateToolsSwift #259

AjayHegdeK opened this issue Apr 13, 2018 · 0 comments

Comments

@AjayHegdeK
Copy link

Hi,

I installed DateToolsSwift pod, I need a relative time difference which I am able to achieve using timeAgo, but I need to set language for the string returns, Currently it takes default language(Locale).
Ex: let timeDiff = dateRangeEnd.timeAgo(since: dateRangeStart, numericDates: true, numericTimes: true).
this returns me a string ex: 1 minute ago. I want set language (locale) for this string I mean I want it to return in French can I do this, is there API available as of now ?

I saw an API in objective c in DateTools, called setLanguage I think that does work (But not sure) for my problem, But I needed it in swift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant