1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Hi Niles!
Here's how you can get the current epoch, in seconds and milliseconds:
const epoch = new Date('1970-01-01T00:00:00Z'); const currentDate = new Date(); const timestamp_ms = currentDate - epoch; const timestamp = Math.floor(timestamp_ms / 1000); GameSparks().Logging().Info("Current timestamp, in seconds: " + timestamp);
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 8달 전
Thanks a lot, Joris, It worked now!