Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

timeDate-Calendar

'timeDate' from Calendar Atoms


Description

Create a 'timeDate' object from calendar atoms.

Usage

timeCalendar(y = getRmetricsOptions("currentYear"), m = 1:12, d = 1,
    h = 0, min = 0, s = 0,
    zone = "", FinCenter = "")

Arguments

y, m, d

calendar years (e.g. 1997), defaults are 1960, calendar months (1-12), defaults are 1, and calendar days (1-31), defaults are 1,

h, min, s

hours of the days (0-23), defaults are 0, minutes of the days (0-59), defaults are 0, and seconds of the days (0-59), defaults are 0.

zone

a character string, denoting 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

returns a S4 object of class "timeDate".

Examples

## timeCalendar -
   
   # Current Year:
   getRmetricsOptions("currentYear")
   
   # 12 months of current year
   timeCalendar() 
   
   timeCalendar(m = c(9, 1, 8, 2), d = c(28, 15, 30, 9),
                y = c(1989, 2001, 2004, 1990), FinCenter = "GMT")
   
   timeCalendar(m = c(9, 1, 8, 2), d = c(28, 15, 30, 9),
                y = c(1989, 2001, 2004, 1990), FinCenter = "Europe/Zurich")
                
   timeCalendar(h = c(9, 14), min = c(15, 23))

timeDate

Rmetrics - Chronological and Calendar Objects

v3043.102
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb], Joe W. Byers [ctb]
Initial release
2018-02-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.