w3resource

R Programming: Create the system's idea of the current date with and without time

R Programming: Basic Exercise-27 with Solution

Write a R program to create the system's idea of the current date with and without time.

Sample Solution :

R Programming Code :

print("System's idea of the current date with and without time:")
print(Sys.Date())
print(Sys.time())

Sample Output:

[1] "System's idea of the current date with and without time:"
[1] "2018-11-13"
[1] "2018-11-13 12:33:23 UTC"                         

R Programming Code Editor:



Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a R program to create a Dataframes which contain details of 5 employees and display summary of the data.

Test your Python skills with w3resource's quiz

What is the difficulty level of this exercise?