diff --git a/DESCRIPTION b/DESCRIPTION index e1c3bf3..482cb51 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: hms Title: Pretty Time of Day -Date: 2016-11-22 -Version: 0.3 +Date: 2017-04-25 +Version: 0.3.0.9001 Authors@R: c( person("Kirill", "Müller", role = c("aut", "cre"), email = "krlmlr+r@mailbox.org"), person("The R Consortium", role = "cph") diff --git a/NEWS.md b/NEWS.md index eb899b3..3f2c9ef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +### hms 0.3.0.9001 (2017-04-25) + +- New `round_hms()` and `trunc_hms()` for rounding or truncating to a given multiple of seconds (#31). +- New `parse_hms()` and `parse_hm()` to parse strings in "HH:MM:SS" and "HH:MM" formats (#30). +- Documentation is in Markdown format now. +- Improved error message if calling `hms()` with a character argument (#29). + + # hms 0.3 (2016-11-22) - Fix `lubridate` test for compatibility with 1.6.0 (#23, @vspinu). diff --git a/man/round_hms.Rd b/man/round_hms.Rd index 691ba69..e0e779b 100644 --- a/man/round_hms.Rd +++ b/man/round_hms.Rd @@ -22,7 +22,7 @@ The input, rounded or truncated to the nearest multiple of \code{secs} Convenience functions to round or truncate to a multiple of seconds. } \examples{ -round_hms("12:34:56", 5) -round_hms("12:34:56", 60) -trunc_hms("12:34:56", 60) +round_hms(as.hms("12:34:56"), 5) +round_hms(as.hms("12:34:56"), 60) +trunc_hms(as.hms("12:34:56"), 60) }