i am in Linux system i have timestamp in this mode 1633986034 i want convert in this format 2022/04/01 22:10:05
how is possible do that. ??
I try in this mode but not work correct date -d @1633986034
thanks at all
CodePudding user response:
Try date -d '@1633986034' '%Y/%m/%d %T'
.
For more information about formating dates read the date man page
CodePudding user response:
You need to add the date format you want to get, for example :
date -d "@1633986034" '%Y/%m/%d %H:%M:%S'
--> 2021/10/11 23:00:34