Each time new data are written to a data table, the associated row in the metadata table should include a time stamp indicating when this most recent edit was made.
To do so, update the value of the last_db_refresh field in the metadata table to equal the current time in the UTC time zone.
The R function lubridate::with_tz(Sys.time(), "UTC") gives the current time in UTC time zone.
Each time new data are written to a data table, the associated row in the metadata table should include a time stamp indicating when this most recent edit was made.
To do so, update the value of the
last_db_refresh
field in the metadata table to equal the current time in the UTC time zone.The
R
functionlubridate::with_tz(Sys.time(), "UTC")
gives the current time in UTC time zone.References:
21
https://github.com/orgs/coopercenter/teams/data-management/discussions/7