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);
已回答 1 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
Thanks a lot, Joris, It worked now!