as.timeDate {fCalendar} | R Documentation |
Coerce and transform objects of class 'timeDate'.
## Default S3 method: as.timeDate(x, zone = myFinCenter, FinCenter = myFinCenter) ## S3 method for class 'POSIXt' as.timeDate(x, zone = myFinCenter, FinCenter = myFinCenter) ## S3 method for class 'Date' as.timeDate(x, zone = myFinCenter, FinCenter = myFinCenter) ## S3 method for class 'timeDate' as.timeDate(x, zone = x@FinCenter, FinCenter = myFinCenter)
x |
an object of class |
zone |
the time zone or financial center where the data were recorded. |
FinCenter |
a character with the the location of the financial center named as "continent/city". |
as.timeDate.POSIXt
returns an object of class timeDate
.
as.timeDate.Date
returns an object of class timeDate
.
## timeDate - tC = timeCalendar() ## Coerce a 'Date' object into a 'timeDate' object: as.timeDate(Sys.Date())