{
"id": "fn-sys-timestamp_ms",
"dataComponent": "sys",
"heading": {
"title": "timestamp_ms",
"badges": [
"System"
]
},
"synopsis": "Returns the current epoch time in milliseconds (as a 64-bit integer).",
"codeBlocks": [
"############################################\n# Example usage:\n############################################\n\n# 1) Call sys:timestamp_ms with no arguments.\nms = sys:timestamp_ms()\n\n# 2) Print or store the integer result.\nsput(ms)\n\n# The returned value is a 64-bit integer measuring\n# milliseconds since 1970-01-01.\n"
],
"notes": [
"sys:timestamp_ms() makes a synchronous call into the system clock and returns a 64-bit integer representing milliseconds since the Unix epoch (1970-01-01).",
"No arguments are taken; if you pass any arguments, it raises an error.",
"If you need finer granularity in microseconds, see sys:timestamp_micro()."
]
}