How to print current time in r?

Hi,

I am learning and want to print current date and time on console. How to print current time in R Programming?

Thanks

View Answers

June 26, 2017 at 1:35 PM

Hi,

You should use Sys.time() for getting current date and time.

Following is the example usage of above function to get current date and time in R Programming language:

> format(Sys.time(), "%c")
[1] "Tue Jun 27 00:01:31 2017"

Thanks


June 26, 2017 at 1:37 PM

Hi,

Check 100s of tutorials of r programming at our R Programming tutorials page.

Thanks









Related Tutorials/Questions & Answers:
Advertisements