This method stubs the built-in
date methods with an overwritten
value for use in unit tests.
Date or POSIXct or character. For example,
expression. The expression to evaluate while pretending
the current time is
POSIXct object can be
provided, or an English string in the form "<number> <unit>s <from now/ago>"
1 hour ago
2 months from now
10 seconds ago
These are translated into
Sys.time() + as.difftime(number, units = unit)
- in the case of "ago").
the value of
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.