Created
December 6, 2020 22:15
-
-
Save baobabprince/6496058a3249a7f5d4e500b3ee25615c to your computer and use it in GitHub Desktop.
get hebrew date from internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get hebrew date from internet | |
hebrew.date <- function(){ | |
api <- httr::GET("https://www.hebcal.com/etc/hdate-he.js") | |
html <- httr::content(api, as = "text") | |
heb <- gsub("\\w" , "" , html, perl = T) | |
gsub("[[:punct:]\n]","" ,heb) | |
} | |
hebrew.date() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment