Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

How to print current time in r?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How to print current time in r?
2 Answer(s)      26 days ago
Posted in : Big Data

Hi,

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

Thanks

Ads
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


Ads