鉴于Unix时间如1551996855(星期四,2019年3月7日22:14:15 +0000),如何转换和提取HH:MM,(22:14)?
你可以使用date进行转换,并指定+%H:%M作为格式:
date
+%H:%M
date -d @$"1551996855" +%H:%M
-d