$rightNow
$rightNow() -> numberCompact type signature
<:n>Source: FUME
Documentation
Returns the current Unix timestamp in milliseconds as a number.
Unlike $millis(), which is fixed once per evaluation, $rightNow() reads the clock each time it is called. Use it when you need the actual current time during a long-running or asynchronous mapping rather than the evaluation start time.
The function does not inspect the input and does not return a formatted date string; it always returns a numeric millisecond timestamp.
Examples
Check the timestamp shape without depending on an exact clock value
No file-backed example is used here because $rightNow() ignores the input and the useful contract is the return type and its relation to $millis().
Input
null
Expression
($start := $millis(); $now := $rightNow(); {"isNumber": $type($now) = "number", "atOrAfterEvaluationStart": $now >= $start})
Result
{
"isNumber": true,
"atOrAfterEvaluationStart": true
}