Skip to content

Releases: tidyverse/hms

hms 1.1.3

24 Mar 01:51
Compare
Choose a tag to compare

Bug fixes

  • Fix method consistency, checked by R-devel.

Internal

  • Use rlang instead of ellipsis (#106).

hms 1.1.2

20 Aug 06:05
Compare
Choose a tag to compare
  • Re-rendered documentation for compatibility with R-devel.

hms 1.1.1

03 Oct 09:39
Compare
Choose a tag to compare
  • Avoid blanket import for lifecycle package for compatibility with upcoming rlang.
  • Establish compatibility with development version of testthat (#101, @lionel-).

hms 1.0.0

13 Jan 18:36
Compare
Choose a tag to compare

Life cycle

  • hms is now marked as "stable".

Breaking changes

  • "hms" objects no longer have a common type with character and numeric. Combining such values previously threw a warning, now throws an error (#94).
  • vec_cast() and as_hms() now throw error instead of a warning if input can't be parsed (#68).

Features

  • as_hms() is a generic again (#81).
  • round_hms() and trunc_hms() gain digits argument (#78, @hglanz).

Bug fixes

  • as_hms() and vec_cast() now correctly treat objects of class "difftime" with integer mode (#84).

Internal

  • Using lifecycle package (#94).
  • hms has been re-licensed as MIT (#86).

hms 0.5.3

12 Sep 08:06
Compare
Choose a tag to compare
  • Use vec_default_ptype2(), remove vec_ptype2.hms.unspecified() (#80, @romainfrancois).
  • vec_ptype2.hms.default() forwards to vec_default_ptype2() for compatibility with vctrs 0.2.1.
  • Remove as.data.frame.hms(), handeld by vctrs.

hms 0.5.2

12 Sep 07:50
Compare
Choose a tag to compare

hms 0.5.1

28 Oct 22:09
Compare
Choose a tag to compare
  • Lossy casts from character vectors to hms now also trigger a warning if the cast succeeds in the first element of the vector but fails for other elements.

hms 0.5.0

10 Aug 16:23
Compare
Choose a tag to compare

Breaking changes

  • Now based on vctrs >= 0.2.0 (#61). This adds support for vec_cast() and vec_ptype2(). Some operations (such as subset assignment) are now stricter. The new_hms() constructor permits safe construction of hms objects from a numeric vector.

  • The new is_hms() deprecates the existing is.hms(). as.hms() is deprecated in favor of vec_cast() or the new as_hms() (which is just a thin wrapper around vec_cast()).

Printing

  • Always show seconds in a pillar if they are different from zero (#54).

  • Values with nonzero hours, seconds and split-seconds are now displayed correctly in tibbles (#56), even with a very small distance to the full second (#64).

Internal

  • Don't test colored output on CRAN.
  • Correct reference link on r4ds (#58, @evanhaldane).

hms 0.4.2

13 Mar 09:06
Compare
Choose a tag to compare
  • Adapted tests to pillar 1.2.1.

hms 0.4.1

24 Jan 18:27
Compare
Choose a tag to compare
  • Preserve NA when converting to character (#51, @jeroen).
  • Adapted tests to pillar 1.1.0.