Table of Contents

Struct TimePoint

Namespace
SampSharp.OpenMp.Core.Std.Chrono
Assembly
SampSharp.OpenMp.Core.dll

Represents a point in time which is represented in memory like an std::chrono::TimePoint from the C++ standard library.

public readonly struct TimePoint
Inherited Members

Methods

FromDateTimeOffset(DateTimeOffset)

Initializes a new instance of the TimePoint struct.

public static TimePoint FromDateTimeOffset(DateTimeOffset time)

Parameters

time DateTimeOffset

The point in time the value should represent.

Returns

TimePoint

The new time point value.

ToDateTimeOffset()

Converts this time point to a DateTimeOffset.

public DateTimeOffset ToDateTimeOffset()

Returns

DateTimeOffset

The converted value.

ToString()

public override string ToString()

Returns

string

Operators

implicit operator DateTimeOffset(TimePoint)

Converts a TimePoint to a DateTimeOffset.

public static implicit operator DateTimeOffset(TimePoint timePoint)

Parameters

timePoint TimePoint

The value to convert.

Returns

DateTimeOffset

implicit operator TimePoint(DateTimeOffset)

Converts a DateTimeOffset to a TimePoint.

public static implicit operator TimePoint(DateTimeOffset time)

Parameters

time DateTimeOffset

The value to convert.

Returns

TimePoint