| ntimestamp | R Documentation |
neat representation of time stamp
ntimestamp(
timestamp,
show_weekday = TRUE,
show_date = TRUE,
show_hours = TRUE,
show_minutes = TRUE,
show_seconds = TRUE,
show_timezone = TRUE,
display_weekday = NULL,
include_date = NULL,
include_hours = NULL,
include_minutes = NULL,
include_seconds = NULL,
include_timezone = NULL
)
timestamp |
a POSIX time stamp |
show_weekday |
a Boolean representing if the weekday of the timestamp to be included. By default it is set to TRUE |
show_date |
a Boolean representing if the date of time stamp to be included. By default it is set to TRUE. |
show_hours |
a Boolean representing if the hours to be included. By default it is set to TRUE |
show_minutes |
a Boolean representing if the minutes to be included. By default it is set to TRUE |
show_seconds |
a Boolean representing if the seconds to be included. By default it is set to TRUE |
show_timezone |
a Boolean variable representing if the timezone of the date variable to be included. By default it is set to TRUE. |
display_weekday |
Deprecated. Use 'show_weekday' instead. |
include_date |
Deprecated. Use 'show_date' instead. |
include_hours |
Deprecated. Use 'show_hours' instead. |
include_minutes |
Deprecated. Use 'show_minutes' instead. |
include_seconds |
Deprecated. Use 'show_seconds' instead. |
include_timezone |
Deprecated. Use 'show_timezone' instead. |
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,
show_date = FALSE, show_seconds = FALSE,
show_timezone = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.