now: returns a character giving the present moment

Description Usage Arguments Details Value Examples

View source: R/rbsa0.code.r

Description

Returns a character giving the present moment with different components

Usage

1
2
 
  now(what="dh",format="red",seps=c("_","@",":")) 

Arguments

what

character(1) indicating which components to include among:
d for the day (including year and month),
h for the hour,
m for the minute (including hour),
s for the second (including hour and minutes.

format

r or "red" for a reduced output.

seps

character(3) providing the separations for the different components of the reduced returned output.

Details

based on Sys.time R function

Value

a character

Examples

1
2
3
 
  cat("Now is",now(),"\n"); 
  cat(now("dhms","verbose"),"\n"); 

rbsa documentation built on May 2, 2019, 6:07 p.m.