getStartEnd: Generate start and end time of a day

Description Usage Arguments Value Author(s) Examples

View source: R/getStartEnd.R

Description

Generate start and end time of a day when working with argument selectdaysfile in g.part1. The user provides a date and a start hour which is used to generate the timestamps of the start hour minutes 5 minutes and the start hour plus 24 hours. Function not designed for direct use by package user.

Usage

1
getStartEnd(d, startHour, outputFormat = "%d/%m/%Y %H:%M:%S",tz = "Europe/London")

Arguments

d

character with date (without time) format

startHour

Hour that analysis starts at

outputFormat

Characterstring indicating outputFormat

tz

Same as desiredtz in g.part1

Value

Data.frame with two columns: a start time five minutes before startHour on day d and an endtime 24 hours after startHour

Author(s)

Joe Heywood <j.heywood@ucl.ac.uk>

Examples

1
startandendtime = getStartEnd(d="20/5/2017", startHour=4)

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.