timeDate: Rmetrics - Chronological and Calendar Objects

> library(timeDate)

Attaching package: 'timeDate'
The following object is masked from 'package:lineprof':

    align

バージョン: 3012.100


関数名 概略
.endpoints Endpoints Indexes
DaylightSavingTime Daylight Saving Time Rules
Easter Date of Easter
Sys.timeDate System Time as 'timeDate' Object
align Making a 'timeDate' object unique
as.timeDate Any to 'timeDate' Coercion
blockStart Equally sized 'timeDate' Blocks
c Concatenating 'timeDate' Objects
currentYear Current Year
dayOfWeek Day of the Week
dayOfYear Day of the Year
diff Lagged 'timeDate' Differences
difftimeDate Difference of two 'timeDate' Objects
finCenter Financial Center of a timeDate object
firstDay First and Last Days
format Format Methods
holiday Holiday Dates
holidayDate Public and Ecclesiastical Holidays
holidayLONDON London Bank Holidays
holidayNERC NERC Holiday Calendar
holidayNYSE NYSE Holiday Calendar
holidayTSX TSX Holiday Calendar
holidayZURICH Zurich Holiday Calendar
is.na-methods is.na Methods
isBizday Business and Holidays
isRegular Checks if a date/time vector is regular
isWeekday Weekdays and Weekends
julian,timeDate-method Julian Counts and Calendar Atoms
kurtosis Kurtosis
length Length of a 'timeDate' Object
listFinCenter List of Financial Centers
listHolidays List of Holidayss
midnightStandard Midnight Standard
myFinCenter myFinCenter Variable
myUnits Frequency of date/time Units
nDay n-th n-day Dates
names-methods The Names of a timeDate Object
onOrAfter OnOrAfter/Before Dates
periods Rolling periods
plot,timeDate-method Plot Methods
rep Replicating 'timeDate' Objects
rev Reverting 'timeDate' Objects
round Rounding and Truncating 'timeDate' Objects
rulesFinCenter Financial Centers DST Rules
sample Resampling 'timeDate' Objects
setRmetricsOptions Rmetrics Option Settings
show-methods Show Methods
skewness Skewness
sort Sorting 'timeDate' Objects
start Terminal Times and Range
subset Subsetting a 'timeDate' Object
summary.timeDate Summary Method
timeCalendar 'timeDate' from Calendar Atoms
timeDate 'timeDate' Objects from Scratch
timeDate-class Class "timeDate"
timeDate-package Utilities and Tools Package
timeDateMathOps timeDate Mathematical Operations
timeSequence Regularly spaced 'timeDate' objects
unique Making a 'timeDate' object unique
whichFormat Format Recognation
window Time Windows

listFinCenter

> listFinCenter() %>% {
+   head(.) %>% print()
+   length(.)
+ }
[1] "Africa/Abidjan"     "Africa/Accra"       "Africa/Addis_Ababa"
[4] "Africa/Algiers"     "Africa/Asmara"      "Africa/Bamako"
[1] 397

Sys.timeDate

> Sys.timeDate()
GMT
[1] [2016-04-16 00:22:00]

timeSequence

Arguments

  • from, to
  • by
  • length.out
  • along.with
  • format
  • zone
  • FineCenter
  • ...
> (t1 <- timeSequence(from = "2016-03-01", to = "2016-04-01"))
GMT
 [1] [2016-03-01] [2016-03-02] [2016-03-03] [2016-03-04] [2016-03-05]
 [6] [2016-03-06] [2016-03-07] [2016-03-08] [2016-03-09] [2016-03-10]
[11] [2016-03-11] [2016-03-12] [2016-03-13] [2016-03-14] [2016-03-15]
[16] [2016-03-16] [2016-03-17] [2016-03-18] [2016-03-19] [2016-03-20]
[21] [2016-03-21] [2016-03-22] [2016-03-23] [2016-03-24] [2016-03-25]
[26] [2016-03-26] [2016-03-27] [2016-03-28] [2016-03-29] [2016-03-30]
[31] [2016-03-31] [2016-04-01]
> identical(t1, timeSequence(from = "2016-03-01", to = "01-Apr-2016"))
[1] TRUE
> timeSequence(from      = "2004-03-12",
+              to        = "2004-04-11",
+              FinCenter = "Europe/Zurich")
Europe/Zurich
 [1] [2004-03-12 01:00:00] [2004-03-13 01:00:00] [2004-03-14 01:00:00]
 [4] [2004-03-15 01:00:00] [2004-03-16 01:00:00] [2004-03-17 01:00:00]
 [7] [2004-03-18 01:00:00] [2004-03-19 01:00:00] [2004-03-20 01:00:00]
[10] [2004-03-21 01:00:00] [2004-03-22 01:00:00] [2004-03-23 01:00:00]
[13] [2004-03-24 01:00:00] [2004-03-25 01:00:00] [2004-03-26 01:00:00]
[16] [2004-03-27 01:00:00] [2004-03-28 01:00:00] [2004-03-29 02:00:00]
[19] [2004-03-30 02:00:00] [2004-03-31 02:00:00] [2004-04-01 02:00:00]
[22] [2004-04-02 02:00:00] [2004-04-03 02:00:00] [2004-04-04 02:00:00]
[25] [2004-04-05 02:00:00] [2004-04-06 02:00:00] [2004-04-07 02:00:00]
[28] [2004-04-08 02:00:00] [2004-04-09 02:00:00] [2004-04-10 02:00:00]
[31] [2004-04-11 02:00:00]