Learn R Programming

ds4psy (version 0.2.1)

cur_time: Current time (in hh:mm or hh:mm:ss format).

Description

cur_time provides a satisficing version of Sys.time() that is sufficient for most purposes.

Usage

cur_time(seconds = FALSE, sep = ":")

Arguments

seconds

Boolean: Show time with seconds? Default: seconds = FALSE.

sep

Character: Separator to use. Default: sep = ":".

Details

cur_time returns Sys.time() (in " using current system settings.

For a time zone argument, see the now() function of the lubridate package.

See Also

now() function of the lubridate package; Sys.time() function of base R.

Other date and time functions: cur_date(), what_date(), what_day(), what_month(), what_time(), what_week(), what_year()

Examples

Run this code
# NOT RUN {
cur_time() 
cur_time(seconds = TRUE)
cur_time(sep = ".")

# }

Run the code above in your browser using DataLab