ntimestamp: neat representation of time stamp

View source: R/dates.R

ntimestampR Documentation

neat representation of time stamp

Description

neat representation of time stamp

Usage

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
)

Arguments

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.

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,
  show_date = FALSE, show_seconds = FALSE,
  show_timezone = FALSE
)

neatR documentation built on Jan. 31, 2026, 5:07 p.m.