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

Very small fractions of a second #17

Closed
krlmlr opened this issue Jun 5, 2016 · 1 comment
Closed

Very small fractions of a second #17

krlmlr opened this issue Jun 5, 2016 · 1 comment
Assignees

Comments

@krlmlr
Copy link
Member

krlmlr commented Jun 5, 2016

> hms::as.hms(1e-10)
00:00:001e-10

Need format(scientific = FALSE).

@krlmlr krlmlr self-assigned this Jun 8, 2016
@krlmlr krlmlr closed this as completed in 3325ebf Jun 14, 2016
krlmlr pushed a commit that referenced this issue Jun 14, 2016
- Sub-second part is printed with up to six digits, for even smaller values trailing zeros are shown (#17).
krlmlr pushed a commit that referenced this issue Jun 18, 2016
Minor fixes and improvements.

- Subsetting keeps `hms` class (#16).
- `format.hms()` right-justifies the output by padding with spaces from the left, `as.character.hms()` remains unchanged.
- Times larger than 24 hours or with split seconds are now formatted correctly (#12, #13).
- Sub-second part is printed with up to six digits, for even smaller values trailing zeros are shown (#17).
@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant