time_from_model: Convert numeric model time to calendar time

View source: R/time.R

time_from_modelR Documentation

Convert numeric model time to calendar time

Description

Converts numeric model time to Date or POSIXct using a compiled time spec.

Usage

time_from_model(t, time_spec, class = c("origin", "Date", "POSIXct"))

Arguments

t

Numeric model time.

time_spec

A compiled time spec from time_spec(unit = ...).

class

Output class: 'origin' (match the origin class), 'Date', or 'POSIXct'.

Value

A Date or POSIXct vector.


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