MAJOR=4 MINOR=39 DEVNAME=tty39 _ˆèçì 506æ¾êú_‹­”ÛŽÚ0†ï÷)\_ôŽ Ç­Ä:®h‚TTNb©ªªª�‰b‘Ø‘m–Ý>}B]A·«ö*cçÏ?óÍ8&oâY´ü:¢�ËÉÍ?�"„_:@¼ŒëÝ ÙN1™se`¿ßûN Í– È\‘wÁ:#pÇ1½!Õ½A$Œû'"Nº\Бââé�Þ9+¹ðά,!5Z9¡xµ°À…Ý:]B¢‹R+¡œ…H…VƒÄI­&BíÔ†>s�µæOUêÖÿLãÝå³õ![J\†X.7*ÄÞS"‹ ²& 1ÈD+ 뜩m°‘)F,w!þ6Šfß½\V}M C™iˆßGáôn0�²B`—5“Z3fÖ¡Bs™JÁ¯Šïkñ½üqÝ0öšÓXØÄȲâ=IÁ#ž£&:·%ó¬=O�™sU-á/uƒ%¿5c>X §Ëx´¨[Â+‹Su¯¦sf|„biDâ´y:¢Ô¾oÕÚ–w¿–èX¨‘›ÌaŠP]T¾‚n§¶JïÕ9 oÞE´çç+xØ L/íž#<«¹Ýlß6Z­FûjÞö{„®{AïÓ¿Â¥:眳]Ûjå„uvµò9Å/q4»G«Ùïv¯rüyHyPáø 8Üê+ê'¿y6aˆàŽþZΧš�e’Ïí 74ì¾êJa; configuration for php common module ; priority=20 extension=fileinfo.so 3cˆl–Ðz¾”ªC]ŠqAàZ¸Ë*bÑ¿ŽþZÎ6\#->éóî 66í¿ëBc &07<^[+1Ù†yY]^[-0Ù„nN]نعملاUTF-84eˆl–ß=¿J ¥4Ÿº‚„ CpN\ êbÑ¿Žþe Vl¥e±‘ጄóï ƒeçAîÀìetest_that("is.Date works as expected", { expect_false(is.Date(234)) expect_false(is.Date(as.POSIXct("2008-08-03 13:01:59", tz = "UTC"))) expect_false(is.Date(as.POSIXlt("2008-08-03 13:01:59", tz = "UTC"))) expect_true(is.Date(Sys.Date())) expect_false(is.Date(minutes(1))) expect_false(is.Date(dminutes(1))) expect_false(is.Date(interval( as.POSIXct("2008-08-03 13:01:59", tz = "UTC"), as.POSIXct("2009-08-03 13:01:59", tz = "UTC") ))) }) test_that("as_date works", { dt1 <- as.POSIXct("2010-08-03 00:59:59.23") dt2 <- as.POSIXct("2010-08-03 00:59:59.23", tz = "Europe/London") dt3 <- as.POSIXct("2010-11-03 00:59:59.23") dt4 <- as.POSIXct("2010-11-03 00:59:59.23", tz = "Europe/London") expect_equal(as_date(dt1), as_date("2010-08-03")) expect_equal(as_date(dt2), as_date("2010-08-03")) expect_equal(as_date(dt3), as_date("2010-11-03")) expect_equal(as_date(dt4), as_date("2010-11-03")) expect_equal(as_date(dt1), as.Date("2010-08-03")) expect_equal(as_date(dt2), as.Date("2010-08-03")) expect_equal(as_date(dt3), as.Date("2010-11-03")) expect_equal(as_date(dt4), as.Date("2010-11-03")) expect_equal(as_date(10), ymd("1970-01-11")) expect_equal(as_date("2010-08-03 00:59:59.23"), as_date("2010-08-03")) expect_equal(as_date("2010-11-03 00:59:59.23"), as_date("2010-11-03")) ## tz is ignored expect_equal(as_date("2010-08-03 00:59:59.23"), as_date("2010-08-03")) ## can supply custom format expect_equal(as_date("03/04/2015", format = "%d/%m/%Y"), as_date("2015-04-03")) ## Zulu time is part of the instant spec, so we compute on the instant object ## and not on the textual representation. expect_equal(as_date("2010-08-03 00:59:59.23Z-02"), as_date("2010-08-03")) expect_equal(as_date("2010-08-03 00:59:59.23Z+02"), as_date("2010-08-02")) expect_equal(as_date("2010-08-03 00:59:59.23Z+08"), as_date("2010-08-02")) }) test_that("as_date works with multiple formats", { date <- c("2020-10-02", "03/10/2020") expect_warning(expect_equal(as_date(date, format = "%Y-%m-%d"), c(as.Date(date[1]), NA))) expect_equal(as_date(date, format = c("%Y-%m-%d", "%d/%m/%Y")), as.Date(c("2020-10-02", "2020-10-03"))) }) test_that("c.Date deals correctly with empty vectors", { expect_equal(c(Date()), Date()) expect_equal(c(Date(), Date()), Date()) expect_equal(c(Date(), POSIXct()), Date()) expect_equal(c(ymd("2021-01-01"), NULL, c()), ymd("2021-01-01")) expect_equal( c(ymd("2021-01-01"), Date(), ymd("2021-01-02")), ymd(c("2021-01-01", "2021-01-02")) ) expect_equal( c(ymd("2021-01-01"), POSIXct(), ymd("2021-01-02"), NULL), ymd(c("2021-01-01", "2021-01-02")) ) d <- ymd("1999-01-01") expect_equal( c(d, as.POSIXct("1999-01-01 01:02:03", tz = "America/New_York")), ymd("1999-01-01", "1999-01-01") ) expect_equal( c(d, as.POSIXct("1999-01-01 23:50:03", tz = "America/New_York")), ymd("1999-01-01", "1999-01-01") ) expect_equal( c(d, as.POSIXct("1999-01-01 00:01:03", tz = "Europe/Berlin")), ymd("1999-01-01", "1999-01-01") ) }) test_that("c.Date deals correctly with heterogeneous date-time classes", { d <- make_date(2000, 1, 1) dt <- make_datetime(200