Convert a timestamp in seconds to milliseconds.
When smart is true the function tries to detect already-millisecond values and returns them unchanged (heuristic threshold). Very large numbers (> 1e12) are assumed to already be milliseconds.
smart
timestamp in seconds or milliseconds
enable heuristic detection (default: true)
timestamp in milliseconds
Convert a timestamp in seconds to milliseconds.
When
smartis true the function tries to detect already-millisecond values and returns them unchanged (heuristic threshold). Very large numbers (> 1e12) are assumed to already be milliseconds.