Create dates and times

ch_timezone(n = 1)

ch_unix_time(n = 1)

ch_date_time(n = 1)

Arguments

n

(integer) number of things to get, any non-negative integer

See also

Examples

ch_timezone()
#> [[1]]
#> [[1]][[1]]
#> [1] "Africa/Malabo"
#> 
#> [[1]]$code
#> [1] "GQ"
#> 
#> [[1]]$continent
#> [1] "Africa"
#> 
#> [[1]]$name
#> [1] "Equatorial Guinea"
#> 
#> [[1]]$capital
#> [1] "Malabo"
#> 
#> 
ch_timezone(10)
#> [[1]]
#> [[1]][[1]]
#> [1] "Pacific/Tongatapu"
#> 
#> [[1]]$code
#> [1] "TO"
#> 
#> [[1]]$continent
#> [1] "Oceania"
#> 
#> [[1]]$name
#> [1] "Tonga"
#> 
#> [[1]]$capital
#> [1] "Nukuʻalofa"
#> 
#> 
#> [[2]]
#> [[2]][[1]]
#> [1] "Africa/Abidjan"
#> 
#> [[2]]$code
#> [1] "CI"
#> 
#> [[2]]$continent
#> [1] "Africa"
#> 
#> [[2]]$name
#> [1] "Côte d'Ivoire"
#> 
#> [[2]]$capital
#> [1] "Yamoussoukro"
#> 
#> 
#> [[3]]
#> [[3]][[1]]
#> [1] "America/La_Paz"
#> 
#> [[3]]$code
#> [1] "BO"
#> 
#> [[3]]$continent
#> [1] "South America"
#> 
#> [[3]]$name
#> [1] "Bolivia"
#> 
#> [[3]]$capital
#> [1] "Sucre"
#> 
#> 
#> [[4]]
#> [[4]][[1]]
#> [1] "Europe/Stockholm"
#> 
#> [[4]]$code
#> [1] "SE"
#> 
#> [[4]]$continent
#> [1] "Europe"
#> 
#> [[4]]$name
#> [1] "Sweden"
#> 
#> [[4]]$capital
#> [1] "Stockholm"
#> 
#> 
#> [[5]]
#> [[5]][[1]]
#> [1] "Africa/Cairo"
#> 
#> [[5]]$code
#> [1] "EG"
#> 
#> [[5]]$continent
#> [1] "Africa"
#> 
#> [[5]]$name
#> [1] "Egypt"
#> 
#> [[5]]$capital
#> [1] "Cairo"
#> 
#> 
#> [[6]]
#> [[6]][[1]]
#> [1] "America/Guatemala"
#> 
#> [[6]]$code
#> [1] "GT"
#> 
#> [[6]]$continent
#> [1] "North America"
#> 
#> [[6]]$name
#> [1] "Haiti"
#> 
#> [[6]]$capital
#> [1] "Port-au-Prince"
#> 
#> 
#> [[7]]
#> [[7]][[1]]
#> [1] "Asia/Calcutta"
#> 
#> [[7]]$code
#> [1] "IN"
#> 
#> [[7]]$continent
#> [1] "Asia"
#> 
#> [[7]]$name
#> [1] "India"
#> 
#> [[7]]$capital
#> [1] "New Delhi"
#> 
#> 
#> [[8]]
#> [[8]][[1]]
#> [1] "Europe/Lisbon"    "Atlantic/Madeira" "Atlantic/Azores" 
#> 
#> [[8]]$code
#> [1] "PT"
#> 
#> [[8]]$continent
#> [1] "Europe"
#> 
#> [[8]]$name
#> [1] "Portugal"
#> 
#> [[8]]$capital
#> [1] "Lisbon"
#> 
#> 
#> [[9]]
#> [[9]][[1]]
#> [1] "Africa/Asmera"
#> 
#> [[9]]$code
#> [1] "ER"
#> 
#> [[9]]$continent
#> [1] "Africa"
#> 
#> [[9]]$name
#> [1] "Eritrea"
#> 
#> [[9]]$capital
#> [1] "Asmara"
#> 
#> 
#> [[10]]
#> [[10]][[1]]
#> [1] "Europe/Madrid"   "Africa/Ceuta"    "Atlantic/Canary"
#> 
#> [[10]]$code
#> [1] "ES"
#> 
#> [[10]]$continent
#> [1] "Europe"
#> 
#> [[10]]$name
#> [1] "Spain"
#> 
#> [[10]]$capital
#> [1] "Madrid"
#> 
#> 

ch_unix_time()
#> [1] 1609317234
ch_unix_time(20)
#>  [1]  878914791 1113506528 1157337008   77629987  424242888  209616556
#>  [7]  883348550  749613375 1397619936 1498190982 1272214004 1627655140
#> [13]  844974837  771437584  960709446  814327345  296786599  643480506
#> [19]  440428545  480606775

ch_date_time()
#> [1] "2004-01-14 12:08:57 UTC"
ch_date_time(20)
#> [[1]]
#> [1] "1990-06-23 01:50:26 UTC"
#> 
#> [[2]]
#> [1] "1971-03-02 18:33:00 UTC"
#> 
#> [[3]]
#> [1] "2014-05-24 23:13:01 UTC"
#> 
#> [[4]]
#> [1] "1986-01-25 15:25:59 UTC"
#> 
#> [[5]]
#> [1] "1970-08-03 05:02:57 UTC"
#> 
#> [[6]]
#> [1] "1987-01-05 16:40:57 UTC"
#> 
#> [[7]]
#> [1] "2008-03-18 19:10:45 UTC"
#> 
#> [[8]]
#> [1] "1991-10-03 19:53:22 UTC"
#> 
#> [[9]]
#> [1] "2012-10-18 19:37:23 UTC"
#> 
#> [[10]]
#> [1] "1979-12-17 19:24:45 UTC"
#> 
#> [[11]]
#> [1] "2003-02-28 01:09:11 UTC"
#> 
#> [[12]]
#> [1] "2011-08-30 21:48:25 UTC"
#> 
#> [[13]]
#> [1] "1993-08-04 13:05:10 UTC"
#> 
#> [[14]]
#> [1] "2017-10-02 17:47:41 UTC"
#> 
#> [[15]]
#> [1] "2014-02-01 08:09:13 UTC"
#> 
#> [[16]]
#> [1] "1981-07-16 18:10:39 UTC"
#> 
#> [[17]]
#> [1] "2013-09-05 12:17:32 UTC"
#> 
#> [[18]]
#> [1] "2009-11-10 17:52:12 UTC"
#> 
#> [[19]]
#> [1] "1976-10-17 08:04:24 UTC"
#> 
#> [[20]]
#> [1] "1985-02-19 20:41:14 UTC"
#>