Description Usage Arguments Details Value See Also Examples
Round or truncate date-time objects.
1 2 3 4 5 6 7 8 9 |
x |
an object inheriting from |
units |
one of the units listed. Can be abbreviated. |
... |
arguments to be passed to or from other methods, notably
|
The time is rounded or truncated to the second, minute, hour or day. Time zones are only relevant to days, when midnight in the current time zone is used.
The methods for class "Date"
are of little use except to remove
fractional days.
An object of class "POSIXlt"
or "Date"
.
round
for the generic function and default methods.
1 2 | round(.leap.seconds + 1000, "hour")
trunc(Sys.time(), "day")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.