Javascript Unix Timestamp 작성일 2016-12-22 Edited on 2021-01-21 In javascript , etc Views: Disqus: API 통신시 Unix Timestamp가 필요한 경우가 있다. 소스1234// === PHP time();var timestamp = Math.round(new Date().getTime() / 1000);// 또는// new Date().getTime() 을 Date.now() 로 바꿀 수 있다. 여담lodash 라이브러리를 사용하면 _.now() 함수로 현재 타임스탬프를 가져올 수 있다.소스처럼 1,000으로 나눠줘야한다.