tests/testthat/test-sys-date-time.R

test_that("sys-time", {
  expect_true(chk::vld_date_time(dtt_sys_date_time()))
  expect_identical(dtt_tz(dtt_sys_date_time("Etc/GMT+12")), "Etc/GMT+12")
})

Try the dttr2 package in your browser

Any scripts or data that you put into this service are public.

dttr2 documentation built on Sept. 26, 2024, 1:06 a.m.