Unix
Get the second-level timestamp of the current moment.
Unix()Examples
Get the current timestamp in seconds.
javascript
function main() {
var t = Unix()
Log(t)
// Output: 1728632400 (timestamp in seconds, a 10-digit integer)
}
python
def main():
t = Unix()
Log(t)
# Output: 1728632400 (timestamp in seconds, a 10-digit integer)
rust
fn main() {
let t = Unix();
Log!(t);
// Output: 1728632400 (timestamp in seconds, a 10-digit integer)
}Returns
| Type | Description |
number | Returns the second-level timestamp. |
See Also