This family of functions extract fields from a calendar vector. Each calendar has its own set of supported getters, which are documented on their own help page:
There are also convenience methods for extracting certain components directly from R's native date and date-time types.
date-times (POSIXct / POSIXlt)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
An object to get the component from.
You cannot extract components directly from a time point type, such as sys-time or naive-time. Convert it to a calendar type first. Similarly, a zoned-time must be converted to either a sys-time or naive-time, and then to a calendar type, to be able to extract components from it.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.