as_timestamp {yfinancer}R Documentation

Convert Date or POSIXct to Unix timestamp

Description

Convert Date or POSIXct to Unix timestamp

Usage

as_timestamp(x, default = NULL)

Arguments

x

Date object, POSIXct object, or string in YYYY-MM-DD HH:MM:SS format

default

Default value to return if x is NULL

Value

Unix timestamp in seconds


[Package yfinancer version 0.1.3 Index]