time_yte: Convert dates to trading years

View source: R/date_yte.R

time_yteR Documentation

Convert dates to trading years

Description

Convert time until expiry date into trading years until expiration. NOTE: this function includes the exact time-difference but does not account for trading hours.

Usage

time_yte(expiry)

Arguments

expiry

the date to convert, as a string/character, in the yyyy-mm-dd format.

Value

numeric, the time until the expiry date in trading years


shill1729/trader documentation built on Dec. 27, 2022, 10:55 p.m.