Skip to content

Commit

Permalink
[1:6] not [1:5] for summary.(Date|POSIX[cl]t)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@28919 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
maechler committed Apr 5, 2004
1 parent 736b52e commit a192bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/library/base/R/dates.R
Expand Up @@ -86,7 +86,7 @@ print.Date <- function(x, ...)

summary.Date <- function(object, ...)
{
x <- summary.default(unclass(object), ...)[1:5]
x <- summary.default(unclass(object), ...)[1:6]# not NA's
class(x) <- oldClass(object)
x
}
Expand Down
4 changes: 2 additions & 2 deletions src/library/base/R/datetime.R
Expand Up @@ -130,14 +130,14 @@ print.POSIXlt <- function(x, ...)

summary.POSIXct <- function(object, digits=15, ...)
{
x <- summary.default(unclass(object), digits=digits, ...)[1:5]
x <- summary.default(unclass(object), digits=digits, ...)#[1:5]
class(x) <- oldClass(object)
attr(x, "tzone") <- attr(object, "tzone")
x
}

summary.POSIXlt <- function(object, digits = 15, ...)
summary(as.POSIXct(object), digits = digits, ...)[1:5]
summary(as.POSIXct(object), digits = digits, ...)


"+.POSIXt" <- function(e1, e2)
Expand Down

0 comments on commit a192bac

Please sign in to comment.