From 4c090961187bb6864fa6930bd10a619e286e8d0b Mon Sep 17 00:00:00 2001 From: Fabian Bernhard <10245680+fabern@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:53:01 +0200 Subject: [PATCH] Replace CFtimestamp with as_timestamp --- NAMESPACE | 2 +- R/hyper_transforms.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 962bf96..29a1b7b 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -56,4 +56,4 @@ importFrom(stats,setNames) importFrom(tibble,as_tibble) importFrom(utils,head) importFrom(CFtime,CFtime) -importFrom(CFtime,CFtimestamp) +importFrom(CFtime,as_timestamp) diff --git a/R/hyper_transforms.R b/R/hyper_transforms.R index 9e373ce..bb3ebe4 100644 --- a/R/hyper_transforms.R +++ b/R/hyper_transforms.R @@ -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) }