ISOdatetime
Construct Date-time from Broken-down Time

Description

Construct date-time from broken-down time (that is, calendar time separated into year, month, day, hour, minute, and second, with a choice of the time zone).

Usage

ISOdatetime(year, month, day, hour, min, sec, tz = "")
ISOdate(year, month, day, hour = 12, min = 0, sec = 0, tz = "GMT")

Arguments

year, month, day numerical values or character strings specifying a date.
hour, min, sec numerical values or character strings specifying the time within a day.
tz a character string specifying a time zone.
  • For ISOdatetime, the default is the current system time zone.
  • For ISOdate, the default is "GMT".
Value
returns a POSIXct object representing the date-time specified.
See Also
Date, POSIXt
Examples
ISOdatetime(2009, 12, 18, 6, 12, 12.3, tz = "America/New_York")

Sys.setenv(TZ = "") ISOdatetime("2009", "12", "18", "6", "12", "12.3") Sys.setenv(TZ = "America/New_York") ISOdatetime("2009", "12", "18", "6", "12", "12.3") Sys.setenv(TZ = "")

ISOdate(2009, 12, 18)

Package base version 6.1.1-7
Package Index