make.date.time: Builds a date time object from different components

Description Usage Arguments Examples

View source: R/sktools.r

Description

Builds a date time object from different components

Usage

1
2
make.date.time(year, month = 1, day = 1, hour = 0, min = 0, sec = 0,
  date, tz = "")

Arguments

year

an integer specifying the year

month

an integer specifying the month

day

an integer specifying the day

hour

an integer specifying the hour

min

an integer specifying the minute

sec

an integer specifying the second

date

a date object or a character that can be converted to a date. If provided then year, month and day will be extracted from this date object

Examples

1
2
3
4
## Not run: 
  make.date.time(date="2014-01-02", hour=14)

## End(Not run)

skranz/sktools documentation built on April 12, 2021, 11:43 a.m.