seltime_fun: Format before and after arguments for API query

View source: R/seltime_fun.R

seltime_funR Documentation

Format before and after arguments for API query

Description

Format before and after arguments for API query

Usage

seltime_fun(dtin, before = TRUE)

Arguments

dtin

Date object for before or after inputs

before

logical indicattng if input is before

Value

A numeric object as an epoch timestamp

Examples

# convert to epoch timestamp
seltime_fun(Sys.Date())

# back to original 
as.POSIXct(seltime_fun(Sys.Date(), before = FALSE), tz = Sys.timezone(), origin = '1970-01-01')

rStrava documentation built on Oct. 23, 2024, 5:06 p.m.

Related to seltime_fun in rStrava...