docs-v2/content/flux/v0/stdlib/system/time.md

1.3 KiB

title description menu weight flux/v0/tags
system.time() function `system.time()` returns the current system time.
flux_v0_ref
name parent identifier
system.time system system/time
101
date/time

system.time() returns the current system time.

Function type signature
() => time

{{% caption %}} For more information, see Function type signatures. {{% /caption %}}

Examples

Return a stream of tables with the current system time

import "array"
import "system"

array.from(rows: [{time: system.time()}])