ntimestamp | R Documentation |
neat representation of time stamp
ntimestamp(
timestamp,
display.weekday = TRUE,
include.date = TRUE,
include.hours = TRUE,
include.minutes = TRUE,
include.seconds = TRUE,
include.timezone = TRUE
)
timestamp |
a POSIX time stamp |
display.weekday |
a Boolean representing if the weekday of the timestamp to be included. By default it is set to TRUE |
include.date |
a Boolean representing if the date of time stamp to be included. By default it is set to TRUE. |
include.hours |
a Boolean representing if the hours to be included. By default it is set to TRUE |
include.minutes |
a Boolean representing if the minutes to be included. By default it is set to TRUE |
include.seconds |
a Boolean representing if the seconds to be included. By default it is set to TRUE |
include.timezone |
a Boolean variable representing if the timezone of the date variable to be included. By default it is set to TRUE. |
String representation of time stamp
# Neat representation of time stamp
x <- Sys.time()
ntimestamp(x)
# Neat representation of time from a time stamp
ntimestamp(x, include.date = FALSE, include.seconds = FALSE,
include.timezone = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.