본문 바로가기
工夫/Linux

date 로 unix Timestamp 및 날짜 변환

by 치세 2016. 4. 8.
  • unix timestamp 를 날짜 변환 

date -d @unix시간

[root@test001 network-scripts]# date -d @1460014849

Thu Apr  7 16:40:49 KST 2016

[root@test001 network-scripts]# date -d @1260014849

Sat Dec  5 21:07:29 KST 2009


  • 현재 시간을 unix timestamp 로 변환

[root@test001 network-scripts]# date -d "Fri Apr  8 09:09:44 KST 2016" "+%s"

1460074184


[root@test001 network-scripts]# date +%s

1460074273

'工夫 > Linux' 카테고리의 다른 글

리눅스 디렉터리 구조  (0) 2021.10.02
생성된 core 파일 확인  (0) 2014.07.05
find  (0) 2014.07.05
tar 명령어  (0) 2014.07.05
virsh 명령어 - xen  (0) 2014.07.05

댓글