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

Formatting for fractional seconds #13

Closed
krlmlr opened this issue May 21, 2016 · 1 comment · Fixed by #15
Closed

Formatting for fractional seconds #13

krlmlr opened this issue May 21, 2016 · 1 comment · Fixed by #15

Comments

@krlmlr
Copy link
Member

krlmlr commented May 21, 2016

Should obey getOption("digits").

hms(1.5)
## 00:00:01.5
hms(1.2345678)
## 00:00:01.234568
hms(1.23, 45, 678)
## 678:45:01
krlmlr added a commit that referenced this issue May 21, 2016
- Times larger than 24 hours or with split seconds are now formatted correctly (#12, #13).
krlmlr pushed a commit that referenced this issue May 21, 2016
- Subsetting keeps `hms` class (#16).
- Times larger than 24 hours or with split seconds are now formatted correctly (#12, #13).
- `format.hms()` right-justifies the output by padding with spaces from the left, `as.character.hms()` remains unchanged.
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

Successfully merging a pull request may close this issue.

1 participant