time_to_model: Convert calendar time to numeric model time

View source: R/time.R

time_to_modelR Documentation

Convert calendar time to numeric model time

Description

Converts numeric, Date, or POSIXct/POSIXt time to numeric model time under a compiled time spec.

Usage

time_to_model(x, time_spec)

Arguments

x

A numeric vector, Date, or POSIXct/POSIXt vector of times.

time_spec

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

Value

Numeric model time in units of time_spec$unit.


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