random_time: Get random time from an interval

View source: R/basic_types.R

random_timeR Documentation

Get random time from an interval

Description

Get random time from an interval

Usage

random_time(
  min_time = "00:00:00",
  max_time = "23:59:59",
  resolution = "seconds"
)

Arguments

min_time

character, beginning of the time interval to sample from

max_time

character, ending of the time interval to sample from

resolution

character, one of "seconds", "minutes", "hours", time resolution

Examples

random_time("12:23:00", "15:48:32")

fixtuRes documentation built on March 18, 2022, 6:13 p.m.