get_release_timestamp: Get Release Timestamp

Description Usage Details Value Examples

Description

Produces the website timestamp in GMT.

Usage

1

Details

Added in version 1.2.0

This function supplies the website timestamp - i.e. the time at which the data were released to the API and by extension the website. Please note that there will be a difference between this timestamp and the timestamp produced using the last_update() function. The latter signifies the time at which the data were deployed to the database, not the time at which they were released.

It may take up to 60 seconds for the data to be updated when the release timestamp (get_release_timestamp()) is updated. This is because the cache must refresh before the new data becomes available. The API timestamp (last_update()), however, is only updated when the cache has been refreshed. This means that you can only be certain that you are receiving the most up-to-data data when the last_update() timestamp for your specific parameters have been updated.

Note: The output is extracted from the header and is accurate to the miliseconds.

Produces the timestamp for the last update in GMT.

Value

closure Timestamp of the last update.

Examples

1

publichealthengland/coronavirus-dashboard-api-R-sdk documentation built on Aug. 26, 2020, 9:40 a.m.