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

Print relative times with decimal numbers #196

Open
MenoData opened this issue Jan 16, 2015 · 0 comments
Open

Print relative times with decimal numbers #196

MenoData opened this issue Jan 16, 2015 · 0 comments

Comments

@MenoData
Copy link
Owner

CLDR-patterns for relative times are only available with one (or zero) placeholder for the amount. This could be a decimal number, however. Actually it is just a rounded down integer.

  • A new overloaded printRelative()-method in class PrettyTime with an extra int-parameter indicating the count of decimal digits would be sufficient to reach this goal.
  • An extra configuration method for the decimal separator to use would be a good supplement, too.

Using decimal numbers might imply changes in the plural rules (needs investigation).

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

No branches or pull requests

1 participant