Barotrauma Client Doc
|
DateTime wrapper that tries to offer a reliable string representation that's also human-friendly More...
Public Member Functions | |
bool | Equals (SerializableDateTime other) |
override bool | Equals (object? obj) |
SerializableDateTime (DateTime value) | |
SerializableDateTime (DateTime value, SerializableTimeZone timeZone) | |
SerializableDateTime | ToUtc () |
SerializableDateTime | ToLocal () |
DateTime | ToUtcValue () |
DateTime | ToLocalValue () |
long | ToUnixTime () |
override string | ToString () |
string | ToLocalUserString () |
override int | GetHashCode () |
int | CompareTo (SerializableDateTime other) |
Static Public Member Functions | |
static SerializableDateTime | FromLocalUnixTime (long unixTime) |
static SerializableDateTime | FromUtcUnixTime (long unixTime) |
static Option< SerializableDateTime > | Parse (string str) |
static bool | operator< (in SerializableDateTime a, in SerializableDateTime b) |
static bool | operator> (in SerializableDateTime a, in SerializableDateTime b) |
static bool | operator== (in SerializableDateTime a, in SerializableDateTime b) |
static bool | operator!= (in SerializableDateTime a, in SerializableDateTime b) |
static SerializableDateTime | operator+ (in SerializableDateTime dt, in TimeSpan ts) |
static SerializableDateTime | operator- (in SerializableDateTime dt, in TimeSpan ts) |
static TimeSpan | operator- (in SerializableDateTime a, in SerializableDateTime b) |
Public Attributes | |
readonly SerializableTimeZone | TimeZone |
Properties | |
static SerializableDateTime | LocalNow [get] |
static SerializableDateTime | UtcNow [get] |
long | Ticks [get] |
DateTime wrapper that tries to offer a reliable string representation that's also human-friendly
Definition at line 99 of file SerializableDateTime.cs.
Barotrauma.SerializableDateTime.SerializableDateTime | ( | DateTime | value | ) |
Definition at line 113 of file SerializableDateTime.cs.
Barotrauma.SerializableDateTime.SerializableDateTime | ( | DateTime | value, |
SerializableTimeZone | timeZone | ||
) |
Definition at line 123 of file SerializableDateTime.cs.
int Barotrauma.SerializableDateTime.CompareTo | ( | SerializableDateTime | other | ) |
override bool Barotrauma.SerializableDateTime.Equals | ( | object? | obj | ) |
bool Barotrauma.SerializableDateTime.Equals | ( | SerializableDateTime | other | ) |
|
static |
|
static |
override int Barotrauma.SerializableDateTime.GetHashCode | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 189 of file SerializableDateTime.cs.
SerializableDateTime Barotrauma.SerializableDateTime.ToLocal | ( | ) |
string Barotrauma.SerializableDateTime.ToLocalUserString | ( | ) |
DateTime Barotrauma.SerializableDateTime.ToLocalValue | ( | ) |
override string Barotrauma.SerializableDateTime.ToString | ( | ) |
long Barotrauma.SerializableDateTime.ToUnixTime | ( | ) |
SerializableDateTime Barotrauma.SerializableDateTime.ToUtc | ( | ) |
DateTime Barotrauma.SerializableDateTime.ToUtcValue | ( | ) |
readonly SerializableTimeZone Barotrauma.SerializableDateTime.TimeZone |
Definition at line 111 of file SerializableDateTime.cs.
|
staticget |
Definition at line 132 of file SerializableDateTime.cs.
|
get |
Definition at line 147 of file SerializableDateTime.cs.
|
staticget |
Definition at line 135 of file SerializableDateTime.cs.