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
Methods
Equals(DateTime?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DateTime? other)
Parameters
other
DateTimeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetDay()
public int GetDay()
Returns
GetGType()
public static Type GetGType()
Returns
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
GetMicrosecond()
public int GetMicrosecond()
Returns
GetMinute()
public int GetMinute()
Returns
GetMonth()
public int GetMonth()
Returns
GetSecond()
public int GetSecond()
Returns
GetTimeZoneOffset()
public float GetTimeZoneOffset()
Returns
GetYear()
public int GetYear()
Returns
HasDay()
public bool HasDay()
Returns
HasMonth()
public bool HasMonth()
Returns
HasSecond()
public bool HasSecond()
Returns
HasTime()
public bool HasTime()
Returns
HasYear()
public bool HasYear()
Returns
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
Returns
NewFromGDateTime(DateTime?)
public static DateTime? NewFromGDateTime(DateTime? dt)
Parameters
dt
DateTime
Returns
NewFromIso8601String(string)
public static DateTime? NewFromIso8601String(string @string)
Parameters
string
string
Returns
NewFromUnixEpochLocalTime(long)
public static DateTime? NewFromUnixEpochLocalTime(long secs)
Parameters
secs
long
Returns
NewFromUnixEpochLocalTimeUsecs(long)
[Version("1.18")]
public static DateTime? NewFromUnixEpochLocalTimeUsecs(long usecs)
Parameters
usecs
long
Returns
NewFromUnixEpochUtc(long)
public static DateTime? NewFromUnixEpochUtc(long secs)
Parameters
secs
long
Returns
NewFromUnixEpochUtcUsecs(long)
[Version("1.18")]
public static DateTime? NewFromUnixEpochUtcUsecs(long usecs)
Parameters
usecs
long
Returns
NewLocalTime(int, int, int, int, int, double)
public static DateTime? NewLocalTime(int year, int month, int day, int hour, int minute, double seconds)
Parameters
Returns
NewNowLocalTime()
public static DateTime? NewNowLocalTime()
Returns
NewNowUtc()
public static DateTime? NewNowUtc()
Returns
NewY(int)
public static DateTime? NewY(int year)
Parameters
year
int
Returns
NewYm(int, int)
public static DateTime? NewYm(int year, int month)
Parameters
Returns
NewYmd(int, int, int)
public static DateTime? NewYmd(int year, int month, int day)
Parameters
Returns
Ref()
public DateTime Ref()
Returns
ToGDateTime()
public DateTime? ToGDateTime()
Returns
ToIso8601String()
public string? ToIso8601String()
Returns
Unref()
public void Unref()