sh_hour | R Documentation |
jdatetime
objectsGet/set the time components of jdatetime
objects
sh_hour(x)
sh_minute(x)
sh_second(x)
## S3 method for class 'jdatetime'
sh_hour(x)
## S3 method for class 'jdatetime'
sh_minute(x)
## S3 method for class 'jdatetime'
sh_second(x)
sh_hour(x) <- value
sh_minute(x) <- value
sh_second(x) <- value
## S3 replacement method for class 'jdatetime'
sh_hour(x) <- value
## S3 replacement method for class 'jdatetime'
sh_minute(x) <- value
## S3 replacement method for class 'jdatetime'
sh_second(x) <- value
x |
A vector of |
value |
A numeric vector. |
For assignment, x
and value
are recycled to their common size using
tidyverse recycling rules.
An integer vector representing the hour, minute or second component of x, depending on the function being called.
x <- jdatetime("1402-12-14 19:13:31")
sh_second(x)
sh_hour(x) <- 17:18
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.