query_sb_date | R Documentation |
Queries ScienceBase for items with timestamps within a certain date/time range.
query_sb_date(
start = as.POSIXct("1970-01-01"),
end = Sys.time(),
date_type = "lastUpdated",
...,
limit = 20
)
start |
Start date as |
end |
End date as |
date_type |
Which object timestamp to query against. Options are (case sensitive): 'Acquisition', 'Award', 'Collected', 'dateCreated', 'Received', 'Reported', 'Transmitted', 'Due', 'End', 'Info', 'lastUpdated', 'Publication', 'Release', 'Repository Created', 'Repository Updated', 'Start'. |
... |
Additional parameters are passed on to |
limit |
Maximum number of returned items. Will do paging to retrieve results when limit is over 1000. Use with caution, queries 10k results are slow. |
## Not run:
# find items updated today
query_sb_date(Sys.time(), Sys.time())
# find items with publications from the 1970's
query_sb_date(as.POSIXct('1970-01-01'), as.POSIXct('1980-01-01'),
date_type='Publication', limit=1000)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.