Skip to content

Commit

Permalink
Replace CFtimestamp with as_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
fabern authored Jul 22, 2024
1 parent 7968b43 commit 4c09096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ importFrom(stats,setNames)
importFrom(tibble,as_tibble)
importFrom(utils,head)
importFrom(CFtime,CFtime)
importFrom(CFtime,CFtimestamp)
importFrom(CFtime,as_timestamp)
2 changes: 1 addition & 1 deletion R/hyper_transforms.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ hyper_transforms.default <- function(x, all = FALSE, ...) {
else calendar <- unlist(dim_atts$value[cal_idx])
try({
cft <- CFtime::CFtime(units, calendar, axis[[1]])
axis$timestamp = CFtime::CFtimestamp(cft)
axis$timestamp = CFtime::as_timestamp(cft)
}, silent = TRUE)
}

Expand Down

0 comments on commit 4c09096

Please sign in to comment.