unix get time

C++
user@machine:~$ date
Tue Jan 12 09:22:56 UTC 2021
Source

Also in C++: