clock | R Documentation |
The clock API serves the current market timestamp, whether or not the market is currently open, as well as the times of the next market open and close. See Clock Endpoint for details. Additionally, if your current timezone is different than that of the market or if a tz
is specified, a local
POSIXct will be appended with corresponding local time (or tz
time) and it's offset
from the market for each of the following outputs: timestamp
, next_open
, and next_close
.
clock(tz = Sys.getenv("TZ"))
tz |
|
Clock (list)
A Clock Object:
timestamp
(POSIXct)
Current timestamp.
is_open
(logical)
Whether or not the market is open as a boolean.
next_open
(POSIXct)
Next market open timestamp as a string.
next_close
(POSIXct)
Next market close timestamp as a string.
## Not run:
clock()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.