as_pretty_dt: Format a difftime

View source: R/pretty_dt.R

as_pretty_dtR Documentation

Format a difftime

Description

Internal method used to print a selenider_session() object. Designed to be used with prettyunits::pretty_dt(), prettyunits::pretty_ms() and prettyunits::pretty_sec().

Usage

as_pretty_dt(x)

## S3 method for class 'pretty_dt'
cli_format(x, style = NULL, ...)

Arguments

x

A string representing a difftime.

style, ...

Not used.

Value

An object of class pretty_dt.

Examples

x <- as_pretty_dt(prettyunits::pretty_sec(10))

cli::cli_text("{.val x}")


selenider documentation built on April 3, 2025, 5:51 p.m.