Table of Contents

Class TimeTag

Namespace
Bonsai.Osc
Assembly
Bonsai.Osc.dll

Provides helper methods for converting to and from OSC time tags.

public static class TimeTag
Inheritance
TimeTag
Inherited Members

Methods

FromTimestamp(DateTimeOffset)

Converts a date time object relative to UTC into an OSC time tag.

public static ulong FromTimestamp(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

A DateTimeOffset specifying a point in time relative to UTC.

Returns

ulong

The OSC time tag corresponding to the specified DateTimeOffset.

ToTimestamp(ulong)

Converts an OSC time tag into a date time object relative to UTC.

public static DateTimeOffset ToTimestamp(ulong timeTag)

Parameters

timeTag ulong

The OSC time tag to convert.

Returns

DateTimeOffset

The DateTimeOffset value corresponding to the specified OSC time tag.