Timestamp
Understanding and generating timestamps
Reading time: 1 minute
Timestamp
The timestamp must be in Unix timestamp format (in seconds) and recent (usually within 5 minutes).
Important Details
- Format: Unix timestamp in seconds (not milliseconds)
- Validity: Must be within a specified time window (5 minutes by default)
- Rejection: Very old requests will be automatically rejected
Generate Timestamp Examples
JavaScriptjavascript
// JavaScript/Node.js
const timestamp = Math.floor(Date.now() / 1000);Pythonpython
# Python
import time
timestamp = int(time.time())PHPphp
// PHP
$timestamp = time();Related
ā Back to Authentication
View Guide