ntimestamp {neatR} | R Documentation |
neat representation of time stamp
Description
neat representation of time stamp
Usage
ntimestamp(
timestamp,
display.weekday = TRUE,
include.date = TRUE,
include.hours = TRUE,
include.minutes = TRUE,
include.seconds = TRUE,
include.timezone = TRUE
)
Arguments
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. |
Value
String representation of time stamp
Examples
# 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)
[Package neatR version 0.2.0 Index]