as_time_spec: Coerce to time_spec

View source: R/time.R

as_time_specR Documentation

Coerce to time_spec

Description

Coerces various inputs into a validated time_spec object. Accepts:

  • A time_spec object (pass-through)

  • A named list with unit (required) and optionally origin, zone

Usage

as_time_spec(x, ...)

Arguments

x

Object to coerce.

...

Additional arguments (unused).

Value

A validated time_spec object.


fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.