Data Science Guide

R Language Time API

Data scientists often need to standardize timestamps when scraping data or logging experiment runs. R makes it easy to fetch our JSON API and convert it directly into a Data Frame or List.

R
library(httr)
    library(jsonlite)

    url <- "https://time.now/developer/api/timezone/Europe/Paris"
    response <- GET(url)

    # Convert JSON content to R list
    data <- fromJSON(content(response, "text"))

    print(paste("Location:", data$timezone))
    print(paste("Current Time:", data$datetime))
    print(paste("Day of Year:", data$day_of_year))

Why use Time.Now for Data Science?

  • Ready for Data Frames
  • Useful for log normalization
  • Easy integration with RStudio
API Reference View All Guides

Free widgets for webmasters:

Free Analog Clock Widget | Free Digital Clock Widget | Free Text Clock Widget | Free Word Clock Widget | Free Countdown Widget