albert jacinto
albert jacinto

Reputation: 43

Get current system time in R

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

Upvotes: 4

Views: 965

Answers (1)

TarJae
TarJae

Reputation: 78917

You can achieve this with this code:

format(Sys.time(), "%H:%M:%S")

Upvotes: 6

Related Questions