dt2dttm: Create Date/Time Object

Description Usage Arguments Value Author(s) Examples

Description

This function takes a time and a date, and melds them together.

Usage

1
2
dt2dttm(dateobj, timeobj, format = "%Y-%m-%d %H:%M:%S",
  tz = "UTC")

Arguments

dateobj

A date formatted as a character string.

timeobj

A time formatted as a character string.

format

A character string containing the format of the resulting date-time object.

tz

The desired timezone to specify for the result.

Value

A object of class POSIXct, formatted according to format and tz.

Author(s)

Ryan Kyle, ryan.kyle@mail.mcgill.ca

Examples

1
dt2dttm("2018-04-04", "15:15:00") # returns "2018-04-04 15:15:00 UTC"

rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.