Skip to content
Documentation

TimeBase Struct

The time base used to convert the time when persisting data.

public readonly struct TimeBase : System.IEquatable<HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase>, HAKOM.TSM.Net.Api.IEnumeration<HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase, int>, HAKOM.TSM.Net.Api.IEnumeration<HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase>

Implements System.IEquatable<TimeBase>, HAKOM.TSM.Net.Api.IEnumeration<TimeBase,System.Int32>, HAKOM.TSM.Net.Api.IEnumeration<TimeBase>

The value of the time base.

public int Value { get; init; }

Implements Value

System.Int32

Creates a time base with a custom value.

public static HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase Create(int value);

value System.Int32

TimeBase
A new TimeBase instance.

Creates a default time base. The default instance is Hakom second.

public static HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase Default();

TimeBase
A new instance of TimeBase with the default value.

Compares the value of this time base to another time base returning a boolean.

public bool Equals(HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase other);

other TimeBase

The TimeBase used for comparison.

System.Boolean
A System.Boolean indicating if the values of the time bases are equal (true) or not equal(false).

Compares the value of this time base to another time base returning a boolean.

public override bool Equals(object? obj);

obj System.Object

The TimeBase used for comparison.

System.Boolean
A System.Boolean indicating if the values of the time bases are equal (true) or not equal(false).

Creates the hash code for this time base, using its value.

public override int GetHashCode();

System.Int32
A hash code for this time base.

Creates a time base similar to unix seconds but with a different timezone (UTC+1) and starting point. (0 = 01.01.1972 00:00:00 UTC+1).

public static HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase HakomSecond();

TimeBase
A new TimeBase instance with value 0.

Display the name and numeric value of the TimeBase as formated string.

public override string ToString();

System.String
The name and numeric value in the following format Name (Value).

Attempts to create a time base based on the given value.

public static HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase> TryCreate(int value);

value System.Int32

The value to create the time base from

HAKOM.ErrorHandling.Core.Net.Api.Result<TimeBase>
A Result<TValue> representing either success or failure of creating a time base with the given value.

Creates a time base for unix milliseconds. The time is persisted in unix milliseconds (0 = 01.01.1970 00:00:00,000 UTC+0).

public static HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase UnixMillisecond();

TimeBase
A new TimeBase instance with value 2.

Creates a time base for unix seconds. The time is persisted in unix seconds (0 = 01.01.1970 00:00:00 UTC+0).

public static HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase UnixSecond();

TimeBase
A new TimeBase instance with value 1.

TimeBase.operator ==(TimeBase, TimeBase) Operator

Section titled “TimeBase.operator ==(TimeBase, TimeBase) Operator”

Compares the value of two time bases using the operator ‘==’.

public static bool operator ==(HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase left, HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase right);

left TimeBase

The TimeBase on the left of the ‘==’ operator.

right TimeBase

The TimeBase on the right of the ‘==’ operator.

System.Boolean
A System.Boolean indicating if the values of the time bases are equal (true) or not equal (false).

TimeBase.operator !=(TimeBase, TimeBase) Operator

Section titled “TimeBase.operator !=(TimeBase, TimeBase) Operator”

Compares the value of two time bases using the operator ‘!=’.

public static bool operator !=(HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase left, HAKOM.TSM.Net.Api.Time.TimeBases.TimeBase right);

left TimeBase

The TimeBase on the left of the ‘!=’ operator.

right TimeBase

The TimeBase on the right of the ‘!=’ operator.

System.Boolean
A System.Boolean indicating if the values of the time bases are not equal (true) or equal (false).

© 2026 Volue.Version v0.6.38017 November 2026