as.timeDate {fCalendar}R Documentation

Coercion into 'timeDate' Objects

Description

Coerce and transform objects of class 'timeDate'.

Usage

## 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)  

Arguments

x an object of class timeDate.
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".

Value

as.timeDate.POSIXt returns an object of class timeDate.
as.timeDate.Date returns an object of class timeDate.

Examples

## timeDate - 
   tC = timeCalendar()
   
## Coerce a 'Date' object into a 'timeDate' object:
   as.timeDate(Sys.Date())

[Package fCalendar version 270.78.3 Index]