R Under development (unstable) (2025-10-16 r88927 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > #### doRUnit.R --- Run RUnit tests > ####------------------------------------------------------------------------ > > ### Origianlly follows Gregor Gojanc's example in CRAN package 'gdata' > ### and the corresponding section in the R Wiki: > ### http://wiki.r-project.org/rwiki/doku.php?id=developers:runit > > ### MM: Vastly changed: This should also be "runnable" for *installed* > ## package which has no ./tests/ > ## ----> put the bulk of the code e.g. in ../inst/unitTests/runTests.R : > > if(require("RUnit", quietly = TRUE)) { + + ## --- Setup --- + + wd <- getwd() + pkg <- sub("\\.Rcheck$", '', basename(dirname(wd))) + + library(package=pkg, character.only=TRUE) + + path <- system.file("unitTests", package = pkg) + + stopifnot(file.exists(path), file.info(path.expand(path))$isdir) + + source(file.path(path, "runTests.R"), echo = TRUE) + } > pkg <- "timeDate" > if (require("RUnit", quietly = TRUE)) { + library(package = pkg, character.only = TRUE) + if (!(exists("path") && file.exists(path))) + .... [TRUNCATED] Executing test function test.POSIX ... [1] "2006-01-01 GMT" "2006-02-01 GMT" "2006-03-01 GMT" "2006-04-01 GMT" [5] "2006-05-01 GMT" "2006-06-01 GMT" "2006-07-01 GMT" "2006-08-01 GMT" [9] "2006-09-01 GMT" "2006-10-01 GMT" "2006-11-01 GMT" "2006-12-01 GMT" [1] "POSIXct" "POSIXt" GMT [1] [2006-01-01] [2006-02-01] [2006-03-01] [2006-04-01] [2006-05-01] [6] [2006-06-01] [2006-07-01] [2006-08-01] [2006-09-01] [2006-10-01] [11] [2006-11-01] [2006-12-01] [1] "2006-01-01" "2006-02-01" "2006-03-01" "2006-04-01" "2006-05-01" [6] "2006-06-01" "2006-07-01" "2006-08-01" "2006-09-01" "2006-10-01" [11] "2006-11-01" "2006-12-01" GMT [1] [2006-01-01] [2006-02-01] [2006-03-01] [2006-04-01] [2006-05-01] [6] [2006-06-01] [2006-07-01] [2006-08-01] [2006-09-01] [2006-10-01] [11] [2006-11-01] [2006-12-01] [1] "2006-01-01" "2006-02-01" "2006-03-01" "2006-04-01" "2006-05-01" [6] "2006-06-01" "2006-07-01" "2006-08-01" "2006-09-01" "2006-10-01" [11] "2006-11-01" "2006-12-01" NewYork [1] [2006-01-01] [2006-02-01] [2006-03-01] [2006-04-01] [2006-05-01] [6] [2006-06-01] [2006-07-01] [2006-08-01] [2006-09-01] [2006-10-01] [11] [2006-11-01] [2006-12-01] [1] "2006-01-01" "2006-02-01" "2006-03-01" "2006-04-01" "2006-05-01" [6] "2006-06-01" "2006-07-01" "2006-08-01" "2006-09-01" "2006-10-01" [11] "2006-11-01" "2006-12-01" NewYork [1] [2005-12-31 19:00:00] [2006-01-31 19:00:00] [2006-02-28 19:00:00] [4] [2006-03-31 19:00:00] [2006-04-30 20:00:00] [2006-05-31 20:00:00] [7] [2006-06-30 20:00:00] [2006-07-31 20:00:00] [2006-08-31 20:00:00] [10] [2006-09-30 20:00:00] [2006-10-31 19:00:00] [2006-11-30 19:00:00] [1] "2005-12-31 19:00:00" "2006-01-31 19:00:00" "2006-02-28 19:00:00" [4] "2006-03-31 19:00:00" "2006-04-30 20:00:00" "2006-05-31 20:00:00" [7] "2006-06-30 20:00:00" "2006-07-31 20:00:00" "2006-08-31 20:00:00" [10] "2006-09-30 20:00:00" "2006-10-31 19:00:00" "2006-11-30 19:00:00" done successfully. Executing test function test.asDate ... GMT [1] [2006-06-01] [2006-12-01] [1] "2006-06-01" "2006-12-01" NewYork [1] [2006-06-01] [2006-12-01] [1] "2006-06-01" "2006-12-01" done successfully. Executing test function test.asTimeDate ... GMT [1] [2006-06-01 10:00:00] [2006-12-01 10:00:00] [1] "2006-06-01 10:00:00" "2006-12-01 10:00:00" NewYork [1] [2006-06-01 10:00:00] [2006-12-01 10:00:00] [1] "2006-06-01 10:00:00" "2006-12-01 10:00:00" NewYork [1] [2006-06-01 06:00:00] [2006-12-01 05:00:00] [1] "2006-06-01 06:00:00" "2006-12-01 05:00:00" done successfully. Executing test function test.displayMethods ... myFinCenter "NewYork" NewYork [1] [2025-01-01] [2025-02-01] [2025-03-01] [2025-04-01] [2025-05-01] [6] [2025-06-01] [2025-07-01] [2025-08-01] [2025-09-01] [2025-10-01] [11] [2025-11-01] [2025-12-01] [1] "2006-07-01" done successfully. Executing test function test.midnightStandard ... [1] "2001-01-01 00:00:00" "2007-01-31 00:00:00" [1] "2001-01-01 16:00:00" [1] "2001-02-01 00:00:00" "2001-01-31 23:10:20" [1] "2001-02-01 00:00:00 GMT" "2001-01-31 23:10:20 GMT" [1] "2010-01-01 GMT" "2010-10-10 GMT" [1] "2001-02-01 00:00:00" "2001-01-31 23:10:00" "2006-01-01 00:00:00" [1] "2001-01-31 00:00:00" done successfully. Executing test function test.sysTimeDate ... Zurich [1] [2025-10-17 08:12:10] GMT [1] [2025-10-17 06:12:10] NewYork [1] [2025-10-17 02:12:10] [1] "timeDate" attr(,"package") [1] "timeDate" [1] "Date" done successfully. Executing test function test.timeCalendar ... done successfully. Executing test function test.timeDate ... myFinCenter "GMT" [1] "2006-01-10" "2006-01-20" "2006-01-30" GMT [1] [2006-01-10] [2006-01-20] [2006-01-30] GMT [1] [2006-01-10 10:00:00] [2006-01-20 10:00:00] [2006-01-30 10:00:00] [1] "2006-01-10 10:00" "2006-01-20 10:00" "2006-01-30 10:00" GMT [1] [2006-01-10 10:00:00] [2006-01-20 10:00:00] [2006-01-30 10:00:00] GMT [1] [2001-01-01] GMT [1] [2001-01-01] GMT [1] [2001-01-01] GMT [1] [2001-01-01 16:00:00] GMT [1] [2001-01-01 16:00:00] GMT [1] [2001-01-01] GMT [1] [2001-01-01] GMT [1] [2001-01-01] GMT [1] [2001-01-01 16:00:00] GMT [1] [2001-01-01 16:00:00] GMT [1] [2001-01-01 00:00:00] [2001-01-01 16:00:00] GMT [1] [2001-01-01 00:00:00] [2001-01-01 16:00:00] Zurich [1] [2001-01-01 01:00:00] Zurich [1] [2001-01-01 01:00:00] Zurich [1] [2001-01-01 01:00:00] Zurich [1] [2001-01-01 17:00:00] Zurich [1] [2001-01-01 17:00:00] Zurich [1] [2001-01-01 01:00:00] [2001-01-01 17:00:00] Zurich [1] [2001-01-01 01:00:00] [2001-01-01 17:00:00] GMT [1] [2006-03-01] [2006-06-01] [2006-09-01] [2006-12-01] GMT [1] [2006-12-15] done successfully. Executing test function test.timeSequence ... done successfully. Executing test function test.whichFormat ... [1] "%Y%m%d" [1] "%Y%m%d%H%M" [1] "%Y%m%d%H%M%S" [1] "%Y%m%d%H%M" [1] "%Y%m%d%H%M%S" [1] "%Y-%m-%d" [1] "%Y-%m-%d %H:%M" [1] "%Y-%m-%d %H:%M:%S" [1] "%Y-%m-%d %H:%M" [1] "%Y-%m-%d %H:%M:%S" [1] "%m/%d/%Y" [1] "%d-%b-%Y" done successfully. Executing test function test.as ... done successfully. Executing test function test.asTimeDate ... done successfully. Executing test function test.atoms ... done successfully. Executing test function test.julian ... done successfully. Executing test function test.months ... done successfully. Executing test function test.dst1.print ... done successfully. Executing test function test.dst2.print ... done successfully. Executing test function test.zurich ... done successfully. Executing test function test.listFinCenter ... done successfully. Executing test function test.myFinCenter ... done successfully. Executing test function test.rulesFinCenter ... done successfully. Executing test function test.holiday ... done successfully. Executing test function test.holidayLONDON ... Europe/London [1] [2025-01-01] [2025-04-18] [2025-04-21] [2025-05-05] [2025-05-26] [6] [2025-08-25] [2025-12-25] [2025-12-26] done successfully. Executing test function test.holidayNERC ... Eastern [1] [2025-01-01] [2025-05-26] [2025-07-04] [2025-09-01] [2025-11-27] [6] [2025-12-25] Eastern [1] [2025-01-01] [2025-05-26] [2025-07-04] [2025-09-01] [2025-11-27] [6] [2025-12-25] done successfully. Executing test function test.holidayNYSE ... NewYork [1] [2025-01-01] [2025-01-20] [2025-02-17] [2025-04-18] [2025-05-26] [6] [2025-06-19] [2025-07-04] [2025-09-01] [2025-11-27] [2025-12-25] NewYork [1] [2025-01-01] [2025-01-20] [2025-02-17] [2025-04-18] [2025-05-26] [6] [2025-06-19] [2025-07-04] [2025-09-01] [2025-11-27] [2025-12-25] done successfully. Executing test function test.holidayZURICH ... done successfully. Executing test function test.easter ... done successfully. Executing test function test.holiday ... 2025-11-30 Advent1st 2025-12-07 Advent2nd 2025-12-14 Advent3rd 2025-12-21 Advent4th 2025-11-01 AllSaints 2025-11-02 AllSouls 2025-03-25 Annunciation 2025-05-29 Ascension 2025-03-05 AshWednesday 2025-08-15 AssumptionOfMary 2025-09-08 BirthOfVirginMary 2025-12-26 BoxingDay 2025-07-01 CACanadaDay 2025-08-04 CACivicProvincialHoliday 2025-02-17 CAFamilyDay 2025-09-01 CALabourDay 2025-10-13 CAThanksgivingDay 2025-05-19 CAVictoriaDay 2025-05-29 CHAscension 2025-01-02 CHBerchtoldsDay 2025-08-01 CHConfederationDay 2025-09-08 CHKnabenschiessen 2025-04-21 CHSechselaeuten 2025-11-11 CaRemembranceDay 2025-09-14 CelebrationOfHolyCross 2025-11-23 ChristTheKing 2025-12-25 ChristmasDay 2025-12-24 ChristmasEve 2025-06-19 CorpusChristi 2025-05-29 DEAscension 2025-12-24 DEChristmasEve 2025-06-19 DECorpusChristi 2025-10-03 DEGermanUnity 2025-12-31 DENewYearsEve 2025-04-20 Easter 2025-04-21 EasterMonday 2025-04-20 EasterSunday 2025-01-06 Epiphany 2025-11-01 FRAllSaints 2025-11-11 FRArmisticeDay 2025-05-29 FRAscension 2025-08-15 FRAssumptionVirginMary 2025-07-14 FRBastilleDay 2025-05-08 FRFetDeLaVictoire1945 2025-05-05 GBEarlyMayBankHoliday 2025-05-26 GBSpringBankHoliday 2025-08-25 GBSummerBankHoliday 2025-04-18 GoodFriday 2025-11-01 ITAllSaints 2025-08-15 ITAssumptionOfVirginMary 2025-01-06 ITEpiphany 2025-12-08 ITImmaculateConception 2025-04-25 ITLiberationDay 2025-12-07 ITStAmrose 2025-03-08 InternationalWomensDay 2025-09-23 JPAutumnalEquinox 2025-12-31 JPBankHolidayDec31 2025-01-02 JPBankHolidayJan2 2025-01-03 JPBankHolidayJan3 2025-11-03 JPBunkaNoHi 2025-05-05 JPChildrensDay 2025-01-13 JPComingOfAgeDay 2025-05-03 JPConstitutionDay 2025-02-23 JPEmperorsBirthday 2025-01-01 JPGantan 2025-05-04 JPGreeneryDay 2025-10-13 JPHealthandSportsDay 2025-09-15 JPKeirouNoHi 2025-02-11 JPKenkokuKinenNoHi 2025-05-03 JPKenpouKinenBi 2025-11-23 JPKinrouKanshaNoHi 2025-05-05 JPKodomoNoHi 2025-05-04 JPKokuminNoKyujitu 2025-07-21 JPMarineDay 2025-05-04 JPMidoriNoHi 2025-08-11 JPMountainDay 2025-02-11 JPNatFoundationDay 2025-05-04 JPNationHoliday 2025-11-03 JPNationalCultureDay 2025-01-01 JPNewYearsDay 2025-09-15 JPRespectForTheAgedDay 2025-01-13 JPSeijinNoHi 2025-09-23 JPShuubunNoHi 2025-10-13 JPTaiikuNoHi 2025-02-23 JPTennouTanjyouBi 2025-11-23 JPThanksgivingDay 2025-07-21 JPUmiNoHi 2025-03-20 JPVernalEquinox 2025-05-01 LaborDay 2025-09-29 MassOfArchangels 2025-01-01 NewYearsDay 2025-04-13 PalmSunday 2025-06-08 Pentecost 2025-06-09 PentecostMonday 2025-02-02 PresentationOfLord 2025-03-02 Quinquagesima 2025-05-25 RogationSunday 2025-02-16 Septuagesima 2025-01-01 SolemnityOfMary 2025-08-06 TransfigurationOfLord 2025-06-15 TrinitySunday 2025-03-03 USCPulaskisBirthday 2025-12-25 USChristmasDay 2025-10-13 USColumbusDay 2025-05-30 USDecorationMemorialDay 2025-11-04 USElectionDay 2025-04-18 USGoodFriday 2025-01-20 USInaugurationDay 2025-07-04 USIndependenceDay 2025-06-19 USJuneteenthNationalIndependenceDay 2025-09-01 USLaborDay 2025-02-12 USLincolnsBirthday 2025-01-20 USMLKingsBirthday 2025-05-26 USMemorialDay 2025-01-01 USNewYearsDay 2025-02-17 USPresidentsDay 2025-11-27 USThanksgivingDay 2025-11-11 USVeteransDay 2025-02-22 USWashingtonsBirthday specialHolidayGB done successfully. Executing test function test.holidaysLONDON ... done successfully. Executing test function test.listHolidays ... done successfully. Executing test function test.timeDateMathOps ... done successfully. Executing test function test.timeDateOrdering ... Formal class 'timeDate' [package "timeDate"] with 3 slots ..@ Data : POSIXct[1:12], format: "2007-01-01 15:00:00" "2007-02-01 15:00:00" ... ..@ format : chr "%Y-%m-%d %H:%M:%S" ..@ FinCenter: chr "NewYork" Formal class 'timeDate' [package "timeDate"] with 3 slots ..@ Data : POSIXct[1:12], format: "2007-01-01 15:00:00" "2007-02-01 15:00:00" ... ..@ format : chr "%Y-%m-%d %H:%M:%S" ..@ FinCenter: chr "Zurich" GMT [1] [2025-02-01] [2025-03-01] [2025-07-01] [2025-09-01] [2025-01-01] [6] [2025-05-01] [2025-10-01] [2025-11-01] [2025-12-01] [2025-06-01] [11] [2025-04-01] [2025-08-01] GMT [1] [2025-10-17] [2025-10-16] [2025-10-15] [2025-10-14] [2025-10-13] [6] [2025-10-12] done successfully. Executing test function test.timeFirstDayInMonth ... done successfully. Executing test function test.timeFirstDayInQuarter ... done successfully. Executing test function test.timeLastDayInMonth ... done successfully. Executing test function test.timeLastDayInQuarter ... done successfully. Executing test function test.timeLastNdayInMonth ... done successfully. Executing test function test.timeNdayOnOrAfter ... done successfully. Executing test function test.timeNdayOnOrBefore ... done successfully. Executing test function test.timeNthNdayInMonth ... done successfully. Executing test function test.Easter ... Zurich [1] [2006-04-09] [2006-04-10] [2006-04-11] [2006-04-12] [2006-04-13] [6] [2006-04-14] [2006-04-15] [2006-04-16] Zurich [1] [2006-04-09] [2006-04-10] [2006-04-11] [2006-04-12] [2006-04-13] [6] [2006-04-14] [2006-04-15] [2006-04-16] done successfully. Executing test function test.blockStart ... done successfully. Executing test function test.cut ... GMT [1] [2006-04-14] GMT [1] [2006-04-17] GMT [1] [2006-04-14] [2006-04-15] [2006-04-16] GMT [1] [2006-04-14] [2006-04-15] [2006-04-16] done successfully. Executing test function test.dayOfWeek ... done successfully. Executing test function test.holidayNYSE ... done successfully. Executing test function test.isBizday ... done successfully. Executing test function test.isHoliday ... done successfully. Executing test function test.isWeekday ... done successfully. Executing test function test.isWeekend ... done successfully. Executing test function test.start ... GMT [1] [2025-01-01] GMT [1] [2025-12-01] done successfully. Executing test function test.subset ... done successfully. Executing test function test.AAA ... [1] "Pacific/Auckland" done successfully. Executing test function test.dayOfWeek ... done successfully. Executing test function test.dayOfYear ... done successfully. Executing test function test.isWeekday ... done successfully. Executing test function test.isWeekend ... done successfully. Executing test function test.seq.GMT ... done successfully. Executing test function test.seq.Zurich ... done successfully. RUNIT TEST PROTOCOL -- Fri Oct 17 08:12:12 2025 *********************************************** Number of test functions: 58 Number of errors: 0 Number of failures: 0 1 Test Suite : timeDate unit testing - 58 test functions, 0 errors, 0 failures There were 50 or more warnings (use warnings() to see the first 50) > > proc.time() user system elapsed 2.90 0.50 3.34