tests/testthat/_snaps/format_time.md

output test

Code
  pillar(add_special(as.POSIXct("2017-07-28 18:04:35 +0200")))
Output
  <pillar>
  <dttm>             
  2017-07-28 18:04:35
  NA                 
Code
  pillar(add_special(as.POSIXlt("2017-07-28 18:04:35 +0200")))
Output
  <pillar>
  <dttm>             
  2017-07-28 18:04:35
  NA
Code
  pillar(add_special(as.POSIXlt("2017-07-28 18:04:35 +0200")))
Output
  <pillar>
  <dttm>                  
  2017-07-28 18:04:35.0000
  NA
Code
  pillar(add_special(as.difftime(8:11, units = "secs")))
Output
  <pillar>
  <drtn> 
   8 secs
   9 secs
  10 secs
  11 secs
  NA secs


Try the pillar package in your browser

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

pillar documentation built on March 31, 2023, 10:19 p.m.