flywire_timestamp | R Documentation |
Find standard UTC timestamp for flywire materialisation version or timestamp
flywire_timestamp(
version = NULL,
timestamp = NULL,
convert = TRUE,
datastack_name = getOption("fafbseg.cave.datastack_name", "flywire_fafb_production")
)
version |
Integer materialisation version. The special value of
|
timestamp |
A timestamp to normalise into an R or Python timestamp in
UTC. The special value of |
convert |
Whether to convert from Python to R timestamp (default:
|
datastack_name |
defaults to the value selected by
|
Note that all CAVE timestamps are in UTC. When the timestamp
argument is a character vector it is assumed to be in UTC regardless
of any timezone specification. Unless the input character vector contains
the string "UTC" then a warning will be issued.
A POSIXct object or Python datetime object in the UTC timezone.
Other cave-queries:
flywire_cave_query()
ts=flywire_timestamp(349)
ts
# As a unix timestamp (number of seconds since 00:00 on 1970-01-01)
as.numeric(ts)
tsp=flywire_timestamp(349, convert=FALSE)
# should be same as the numeric timestamp above
tsp$timestamp()
flywire_timestamp(timestamp="2022-08-28 17:04:49 UTC")
# nb this will return the current time *in UTC* regardless of your timezone
flywire_timestamp(timestamp="now")
## Not run:
# same but gives a warning
flywire_timestamp(timestamp="2022-08-28 17:04:49")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.