now: returns a character giving the present moment

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

Returns a character giving the present moment with different components

Usage

1
now(what="dh", format="red")

Arguments

what

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

format

"red" for reduced if not in a verbose way.

Details

based on Sys.time R function

Value

a character

Examples

1
2
3
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 cat("Now is", now(), "\n");
 cat(now("dhms", "verbose"), "\n"); 

rbsb documentation built on May 31, 2017, 1:45 a.m.