How do I get the current system time in R?
For example, when using Sys.time()
I get something like this:
2021-04-14 13:04:27
But I only want the time part 13:04:27
You can achieve this with this code:
format(Sys.time(), "%H:%M:%S")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With