R Under development (unstable) (2026-01-25 r89330 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 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 > ####------------------------------------------------------------------------ > > ### Originally 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] [2026-01-01] [2026-02-01] [2026-03-01] [2026-04-01] [2026-05-01] [6] [2026-06-01] [2026-07-01] [2026-08-01] [2026-09-01] [2026-10-01] [11] [2026-11-01] [2026-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] [2026-01-26 11:07:39] GMT [1] [2026-01-26 10:07:39] NewYork [1] [2026-01-26 05:07:39] [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] [2026-01-01] [2026-04-03] [2026-04-06] [2026-05-04] [2026-05-25] [6] [2026-08-31] [2026-12-25] [2026-12-28] done successfully. Executing test function test.holidayNERC ... Eastern [1] [2026-01-01] [2026-05-25] [2026-07-04] [2026-09-07] [2026-11-26] [6] [2026-12-25] Eastern [1] [2026-01-01] [2026-05-25] [2026-07-04] [2026-09-07] [2026-11-26] [6] [2026-12-25] done successfully. Executing test function test.holidayNYSE ... NewYork [1] [2026-01-01] [2026-01-19] [2026-02-16] [2026-04-03] [2026-05-25] [6] [2026-06-19] [2026-07-03] [2026-09-07] [2026-11-26] [2026-12-25] NewYork [1] [2026-01-01] [2026-01-19] [2026-02-16] [2026-04-03] [2026-05-25] [6] [2026-06-19] [2026-07-03] [2026-09-07] [2026-11-26] [2026-12-25] done successfully. Executing test function test.holidayZURICH ... done successfully. Executing test function test.easter ... done successfully. Executing test function test.holiday ... 2026-11-29 Advent1st 2026-12-06 Advent2nd 2026-12-13 Advent3rd 2026-12-20 Advent4th 2026-11-01 AllSaints 2026-11-02 AllSouls 2026-03-25 Annunciation 2026-05-14 Ascension 2026-02-18 AshWednesday 2026-08-15 AssumptionOfMary 2026-09-08 BirthOfVirginMary 2026-12-26 BoxingDay 2026-07-01 CACanadaDay 2026-08-03 CACivicProvincialHoliday 2026-02-16 CAFamilyDay 2026-09-07 CALabourDay 2026-10-12 CAThanksgivingDay 2026-05-18 CAVictoriaDay 2026-05-14 CHAscension 2026-01-02 CHBerchtoldsDay 2026-08-01 CHConfederationDay 2026-09-14 CHKnabenschiessen 2026-04-20 CHSechselaeuten 2026-11-11 CaRemembranceDay 2026-09-14 CelebrationOfHolyCross 2026-11-22 ChristTheKing 2026-12-25 ChristmasDay 2026-12-24 ChristmasEve 2026-06-04 CorpusChristi 2026-05-14 DEAscension 2026-12-24 DEChristmasEve 2026-06-04 DECorpusChristi 2026-10-03 DEGermanUnity 2026-12-31 DENewYearsEve 2026-04-05 Easter 2026-04-06 EasterMonday 2026-04-05 EasterSunday 2026-01-06 Epiphany 2026-11-01 FRAllSaints 2026-11-11 FRArmisticeDay 2026-05-14 FRAscension 2026-08-15 FRAssumptionVirginMary 2026-07-14 FRBastilleDay 2026-05-08 FRFetDeLaVictoire1945 2026-05-04 GBEarlyMayBankHoliday 2026-05-25 GBSpringBankHoliday 2026-08-31 GBSummerBankHoliday 2026-04-03 GoodFriday 2026-11-01 ITAllSaints 2026-08-15 ITAssumptionOfVirginMary 2026-01-06 ITEpiphany 2026-12-08 ITImmaculateConception 2026-04-25 ITLiberationDay 2026-12-07 ITStAmrose 2026-03-08 InternationalWomensDay 2026-09-23 JPAutumnalEquinox 2026-12-31 JPBankHolidayDec31 2026-01-02 JPBankHolidayJan2 2026-01-03 JPBankHolidayJan3 2026-11-03 JPBunkaNoHi 2026-05-05 JPChildrensDay 2026-01-12 JPComingOfAgeDay 2026-05-03 JPConstitutionDay 2026-02-23 JPEmperorsBirthday 2026-01-01 JPGantan 2026-05-04 JPGreeneryDay 2026-10-12 JPHealthandSportsDay 2026-09-21 JPKeirouNoHi 2026-02-11 JPKenkokuKinenNoHi 2026-05-03 JPKenpouKinenBi 2026-11-23 JPKinrouKanshaNoHi 2026-05-05 JPKodomoNoHi 2026-05-04 JPKokuminNoKyujitu 2026-07-20 JPMarineDay 2026-05-04 JPMidoriNoHi 2026-08-11 JPMountainDay 2026-02-11 JPNatFoundationDay 2026-05-04 JPNationHoliday 2026-11-03 JPNationalCultureDay 2026-01-01 JPNewYearsDay 2026-09-21 JPRespectForTheAgedDay 2026-01-12 JPSeijinNoHi 2026-09-23 JPShuubunNoHi 2026-10-12 JPTaiikuNoHi 2026-02-23 JPTennouTanjyouBi 2026-11-23 JPThanksgivingDay 2026-07-20 JPUmiNoHi 2026-03-20 JPVernalEquinox 2026-05-01 LaborDay 2026-09-29 MassOfArchangels 2026-01-01 NewYearsDay 2026-03-29 PalmSunday 2026-05-24 Pentecost 2026-05-25 PentecostMonday 2026-02-02 PresentationOfLord 2026-02-15 Quinquagesima 2026-05-10 RogationSunday 2026-02-01 Septuagesima 2026-01-01 SolemnityOfMary 2026-08-06 TransfigurationOfLord 2026-05-31 TrinitySunday 2026-03-02 USCPulaskisBirthday 2026-12-25 USChristmasDay 2026-10-12 USColumbusDay 2026-05-30 USDecorationMemorialDay 2026-11-03 USElectionDay 2026-04-03 USGoodFriday 2026-01-20 USInaugurationDay 2026-07-04 USIndependenceDay 2026-06-19 USJuneteenthNationalIndependenceDay 2026-09-07 USLaborDay 2026-02-12 USLincolnsBirthday 2026-01-19 USMLKingsBirthday 2026-05-25 USMemorialDay 2026-01-01 USNewYearsDay 2026-02-16 USPresidentsDay 2026-11-26 USThanksgivingDay 2026-11-11 USVeteransDay 2026-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] [2026-02-01] [2026-03-01] [2026-07-01] [2026-09-01] [2026-01-01] [6] [2026-05-01] [2026-10-01] [2026-11-01] [2026-12-01] [2026-06-01] [11] [2026-04-01] [2026-08-01] GMT [1] [2026-01-26] [2026-01-25] [2026-01-24] [2026-01-23] [2026-01-22] [6] [2026-01-21] 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.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] [2026-01-01] GMT [1] [2026-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 -- Mon Jan 26 11:07:41 2026 *********************************************** Number of test functions: 57 Number of errors: 0 Number of failures: 0 1 Test Suite : timeDate unit testing - 57 test functions, 0 errors, 0 failures There were 45 warnings (use warnings() to see them) > > proc.time() user system elapsed 2.51 0.51 3.00