Ads

Check out value in brief website for more up-to-date content.

what is time now ? - in Linux

in Bash script or Linux terminal

%%bash

date + '%T'

15:56:26

in Python

%%python3

from datetime import datetime

print(datetime.now().strftime('%T'))

15:56:27

If you want to get new posts, make sure to subscribe to Value In Brief by Email.