RoundToTS

Rounds the specified number to the nearest timestamp value.

Syntax

RoundToTS(doc, time)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document.

time

number

The time value (in seconds) to be rounded

Return

The document timestamp value (in seconds) nearest to the specified time.

Examples

Python

import nex
doc = nex.GetActiveDocument()
ts = nex.RoundToTS(doc, 1.234)

NexScript

doc = GetActiveDocument()
ts = RoundToTS(doc, 1.234)