Table of Contents

Class DateTime

Namespace
Gst
Assembly
Gst-1.0.dll
public sealed class DateTime : BoxedRecord, IEquatable<DateTime>
Inheritance
DateTime
Implements
Inherited Members

Constructors

DateTime(DateTimeOwnedHandle)

public DateTime(DateTimeOwnedHandle handle)

Parameters

handle DateTimeOwnedHandle

Properties

Handle

public DateTimeOwnedHandle Handle { get; }

Property Value

DateTimeOwnedHandle

Methods

Equals(DateTime?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(DateTime? other)

Parameters

other DateTime

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetDay()

public int GetDay()

Returns

int

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHour()

public int GetHour()

Returns

int

GetMicrosecond()

public int GetMicrosecond()

Returns

int

GetMinute()

public int GetMinute()

Returns

int

GetMonth()

public int GetMonth()

Returns

int

GetSecond()

public int GetSecond()

Returns

int

GetTimeZoneOffset()

public float GetTimeZoneOffset()

Returns

float

GetYear()

public int GetYear()

Returns

int

HasDay()

public bool HasDay()

Returns

bool

HasMonth()

public bool HasMonth()

Returns

bool

HasSecond()

public bool HasSecond()

Returns

bool

HasTime()

public bool HasTime()

Returns

bool

HasYear()

public bool HasYear()

Returns

bool

New(float, int, int, int, int, int, double)

public static DateTime? New(float tzoffset, int year, int month, int day, int hour, int minute, double seconds)

Parameters

tzoffset float
year int
month int
day int
hour int
minute int
seconds double

Returns

DateTime

NewFromGDateTime(DateTime?)

public static DateTime? NewFromGDateTime(DateTime? dt)

Parameters

dt DateTime

Returns

DateTime

NewFromIso8601String(string)

public static DateTime? NewFromIso8601String(string @string)

Parameters

string string

Returns

DateTime

NewFromUnixEpochLocalTime(long)

public static DateTime? NewFromUnixEpochLocalTime(long secs)

Parameters

secs long

Returns

DateTime

NewFromUnixEpochLocalTimeUsecs(long)

[Version("1.18")]
public static DateTime? NewFromUnixEpochLocalTimeUsecs(long usecs)

Parameters

usecs long

Returns

DateTime

NewFromUnixEpochUtc(long)

public static DateTime? NewFromUnixEpochUtc(long secs)

Parameters

secs long

Returns

DateTime

NewFromUnixEpochUtcUsecs(long)

[Version("1.18")]
public static DateTime? NewFromUnixEpochUtcUsecs(long usecs)

Parameters

usecs long

Returns

DateTime

NewLocalTime(int, int, int, int, int, double)

public static DateTime? NewLocalTime(int year, int month, int day, int hour, int minute, double seconds)

Parameters

year int
month int
day int
hour int
minute int
seconds double

Returns

DateTime

NewNowLocalTime()

public static DateTime? NewNowLocalTime()

Returns

DateTime

NewNowUtc()

public static DateTime? NewNowUtc()

Returns

DateTime

NewY(int)

public static DateTime? NewY(int year)

Parameters

year int

Returns

DateTime

NewYm(int, int)

public static DateTime? NewYm(int year, int month)

Parameters

year int
month int

Returns

DateTime

NewYmd(int, int, int)

public static DateTime? NewYmd(int year, int month, int day)

Parameters

year int
month int
day int

Returns

DateTime

Ref()

public DateTime Ref()

Returns

DateTime

ToGDateTime()

public DateTime? ToGDateTime()

Returns

DateTime

ToIso8601String()

public string? ToIso8601String()

Returns

string

Unref()

public void Unref()