getStartEnd {GGIR}R Documentation

Generate start and end time of a day

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

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

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

[Package GGIR version 2.7-1 Index]