Public Member Functions | |
constexpr | DateTimeOffset ()=default |
Default constructor. More... | |
ASPOSECPP_SHARED_API | DateTimeOffset (DateTime date_time) |
ASPOSECPP_SHARED_API | DateTimeOffset (int64_t ticks, TimeSpan offset) |
ASPOSECPP_SHARED_API | DateTimeOffset (DateTime date_time, TimeSpan offset) |
ASPOSECPP_SHARED_API | DateTimeOffset (int year, int month, int day, int hour, int minute, int second, TimeSpan offset) |
ASPOSECPP_SHARED_API | DateTimeOffset (int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset) |
ASPOSECPP_SHARED_API | DateTimeOffset (int year, int month, int day, int hour, int minute, int second, int millisecond, const SharedPtr< Globalization::Calendar > &calendar, TimeSpan offset) |
ASPOSECPP_SHARED_API DateTime | get_DateTime () const |
Gets DateTime value. More... | |
ASPOSECPP_SHARED_API DateTime | get_UtcDateTime () const |
Gets DateTime value that represents the UTC date and time. More... | |
ASPOSECPP_SHARED_API DateTime | get_LocalDateTime () const |
Gets DateTime value that represents the local date and time. More... | |
ASPOSECPP_SHARED_API DateTime | get_Date () const |
Gets date component of the current object. More... | |
ASPOSECPP_SHARED_API int | get_Year () const |
Gets year component of the current object. More... | |
ASPOSECPP_SHARED_API int | get_Month () const |
Gets month component of the current object. More... | |
ASPOSECPP_SHARED_API int | get_Day () const |
Gets day of the month of the current object. More... | |
ASPOSECPP_SHARED_API DayOfWeek | get_DayOfWeek () const |
Gets day of the week of the current object. More... | |
ASPOSECPP_SHARED_API int | get_DayOfYear () const |
Gets day of year of the current object. More... | |
ASPOSECPP_SHARED_API int | get_Hour () const |
Gets hour component of the current object. More... | |
ASPOSECPP_SHARED_API int | get_Minute () const |
Gets minute component of the current object. More... | |
constexpr int | get_Second () const |
Gets second component of the current object. More... | |
constexpr int | get_Millisecond () const |
Gets millisecond component of the current object. More... | |
constexpr TimeSpan | get_Offset () const |
Gets offset from UTC. More... | |
ASPOSECPP_SHARED_API int64_t | get_Ticks () const |
Gets number of ticks of the current object. More... | |
ASPOSECPP_SHARED_API int64_t | get_UtcTicks () const |
Gets number of ticks of the current object in UTC time. More... | |
ASPOSECPP_SHARED_API TimeSpan | get_TimeOfDay () const |
Gets time of day of the current object. More... | |
ASPOSECPP_SHARED_API DateTimeOffset | Add (TimeSpan value) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddYears (int years) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddMonths (int months) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddDays (double days) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddHours (double hours) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddMinutes (double minutes) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddSeconds (double seconds) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddMilliseconds (double milliseconds) const |
ASPOSECPP_SHARED_API DateTimeOffset | AddTicks (int64_t ticks) const |
ASPOSECPP_SHARED_API int | CompareTo (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API int | CompareTo (const SharedPtr< Object > &obj) const |
ASPOSECPP_SHARED_API bool | Equals (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | Equals (const SharedPtr< Object > &obj) const |
ASPOSECPP_SHARED_API bool | EqualsExact (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | EqualsExact (const SharedPtr< Object > &obj) const |
ASPOSECPP_SHARED_API DateTimeOffset | Subtract (TimeSpan value) const |
ASPOSECPP_SHARED_API TimeSpan | Subtract (const DateTimeOffset &value) const |
ASPOSECPP_SHARED_API int64_t | ToFileTime () const |
ASPOSECPP_SHARED_API DateTimeOffset | ToLocalTime () const |
ASPOSECPP_SHARED_API DateTimeOffset | ToOffset (TimeSpan offset) const |
ASPOSECPP_SHARED_API String | ToString (const String &format, const SharedPtr< IFormatProvider > &provider) const |
ASPOSECPP_SHARED_API String | ToString (const SharedPtr< IFormatProvider > &provider) const |
ASPOSECPP_SHARED_API String | ToString (const String &format) const |
ASPOSECPP_SHARED_API DateTimeOffset | ToUniversalTime () const |
ASPOSECPP_SHARED_API int64_t | ToUnixTimeMilliseconds () const |
ASPOSECPP_SHARED_API int64_t | ToUnixTimeSeconds () const |
ASPOSECPP_SHARED_API int | GetHashCode () const |
ASPOSECPP_SHARED_API String | ToString () const |
ASPOSECPP_SHARED_API DateTimeOffset | operator+ (TimeSpan value) const |
ASPOSECPP_SHARED_API DateTimeOffset | operator- (TimeSpan value) const |
ASPOSECPP_SHARED_API TimeSpan | operator- (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator== (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator!= (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator< (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator> (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator<= (const DateTimeOffset &other) const |
ASPOSECPP_SHARED_API bool | operator>= (const DateTimeOffset &other) const |
constexpr bool | IsNull () const |
constexpr bool | operator== (std::nullptr_t) const |
constexpr bool | operator!= (std::nullptr_t) const |
constexpr bool | operator< (std::nullptr_t) const |
constexpr bool | operator<= (std::nullptr_t) const |
constexpr bool | operator> (std::nullptr_t) const |
constexpr bool | operator>= (std::nullptr_t) const |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API DateTimeOffset | get_UtcNow () |
Gets DateTimeOffset whose date and time are set to the current UTC-time and whose offset is TimeSpan::Zero. More... | |
static ASPOSECPP_SHARED_API DateTimeOffset | get_Now () |
Gets DateTimeOffset whose date and time are set to the current local-time and whose offset is set to local time's offset. More... | |
static ASPOSECPP_SHARED_API int | Compare (const DateTimeOffset &first, const DateTimeOffset &second) |
static ASPOSECPP_SHARED_API bool | Equals (const DateTimeOffset &first, const DateTimeOffset &second) |
static ASPOSECPP_SHARED_API DateTimeOffset | FromFileTime (int64_t file_time) |
static ASPOSECPP_SHARED_API DateTimeOffset | FromUnixTimeMilliseconds (int64_t milliseconds) |
static ASPOSECPP_SHARED_API DateTimeOffset | FromUnixTimeSeconds (int64_t seconds) |
static ASPOSECPP_SHARED_API DateTimeOffset | Parse (const String &input) |
static ASPOSECPP_SHARED_API DateTimeOffset | Parse (const String &input, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None) |
static ASPOSECPP_SHARED_API DateTimeOffset | ParseExact (const String &input, const String &format, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles=Globalization::DateTimeStyles::None) |
static ASPOSECPP_SHARED_API DateTimeOffset | ParseExact (const String &input, const ArrayPtr< String > &formats, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles) |
static ASPOSECPP_SHARED_API bool | TryParse (const String &input, DateTimeOffset &result) |
static ASPOSECPP_SHARED_API bool | TryParse (const String &input, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result) |
static ASPOSECPP_SHARED_API bool | TryParseExact (const String &input, const ArrayPtr< String > &formats, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result) |
static ASPOSECPP_SHARED_API bool | TryParseExact (const String &input, const String &format, const SharedPtr< IFormatProvider > &provider, Globalization::DateTimeStyles styles, DateTimeOffset &result) |
static const TypeInfo & | Type () |
Returns a TypeInfo object that represent TimeSpan structure. More... | |
Static Public Attributes | |
static constexpr int64_t | MaxOffset = TimeSpan::TicksPerHour * 14 |
Gets maximum offset in ticks. More... | |
static constexpr int64_t | MinOffset = -MaxOffset |
Gets minimum offset in ticks. More... | |
static ASPOSECPP_SHARED_API const DateTimeOffset | MinValue |
Gets earliest DateTimeOffset value. More... | |
static ASPOSECPP_SHARED_API const DateTimeOffset | MaxValue |
Gets greatest DateTimeOffset value. More... | |
static ASPOSECPP_SHARED_API const DateTimeOffset | UnixEpoch |
Gets Unix epoch start. More... | |
Contains the date and time of day relative to Coordinated Universal Time. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
|
default |
Default constructor.
ASPOSECPP_SHARED_API System::DateTimeOffset::DateTimeOffset | ( | DateTime | date_time | ) |
Constructor.
date_time | Date and time. |
ASPOSECPP_SHARED_API System::DateTimeOffset::DateTimeOffset | ( | int64_t | ticks, |
TimeSpan | offset | ||
) |
Constructor.
ticks | Number of ticks. |
offset | Time offset from UTC. |
Constructor.
date_time | Date and time. |
offset | Time offset from UTC. |
ASPOSECPP_SHARED_API System::DateTimeOffset::DateTimeOffset | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
int | second, | ||
TimeSpan | offset | ||
) |
Constructor.
year | Year (1 through 9999). |
month | Month (1 through 12). |
day | Day (1 through the number of days in month). |
hour | Hour (0 through 23). |
minute | Minute (0 through 59). |
second | Second (0 through 59). |
offset | Time offset from UTC. |
ASPOSECPP_SHARED_API System::DateTimeOffset::DateTimeOffset | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
int | second, | ||
int | millisecond, | ||
TimeSpan | offset | ||
) |
Constructor.
year | Year (1 through 9999). |
month | Month (1 through 12). |
day | Day (1 through the number of days in month). |
hour | Hour (0 through 23). |
minute | Minute (0 through 59). |
second | Second (0 through 59). |
millisecond | Millisecond (0 through 999). |
offset | Time offset from UTC. |
ASPOSECPP_SHARED_API System::DateTimeOffset::DateTimeOffset | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
int | second, | ||
int | millisecond, | ||
const SharedPtr< Globalization::Calendar > & | calendar, | ||
TimeSpan | offset | ||
) |
Constructor.
year | Year. |
month | Month (1 through 12). |
day | Day (1 through the number of days in month). |
hour | Hour (0 through 23). |
minute | Minute (0 through 59). |
second | Second (0 through 59). |
millisecond | Millisecond (0 through 999). |
calendar | Calendar used to interpret year, month, and day. |
offset | Time offset from UTC. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::Add | ( | TimeSpan | value | ) | const |
Adds a specified time interval to the DateTimeOffset object.
value | Positive or a negative time interval. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddDays | ( | double | days | ) | const |
Adds a specified number of days to the DateTimeOffset object.
days | Positive or negative number of days. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddHours | ( | double | hours | ) | const |
Adds a specified number of hours to the DateTimeOffset object.
hours | Positive or negative number of hours. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddMilliseconds | ( | double | milliseconds | ) | const |
Adds a specified number of milliseconds to the DateTimeOffset object.
milliseconds | Positive or negative number of milliseconds. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddMinutes | ( | double | minutes | ) | const |
Adds a specified number of minutes to the DateTimeOffset object.
minutes | Positive or negative number of minutes. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddMonths | ( | int | months | ) | const |
Adds a specified number of months to the DateTimeOffset object.
months | Positive or negative number of months. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddSeconds | ( | double | seconds | ) | const |
Adds a specified number of seconds to the DateTimeOffset object.
seconds | Positive or negative number of seconds. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddTicks | ( | int64_t | ticks | ) | const |
Adds a specified number of ticks to the DateTimeOffset object.
ticks | Positive or negative number of ticks. |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::AddYears | ( | int | years | ) | const |
Adds a specified number of years to the DateTimeOffset object.
years | Positive or negative number of years. |
|
static |
Compares two DateTimeOffset objects.
first | First object to compare. |
second | Second object to compare. |
first
is earlier than second
, 1 - if first
is later than second
, 0 - if first
is equal to second
. ASPOSECPP_SHARED_API int System::DateTimeOffset::CompareTo | ( | const DateTimeOffset & | other | ) | const |
Compares two DateTimeOffset objects.
other | Object to compare. |
other
, 1 - if current object is later than other
, 0 - if current object is equal to other
. Compares two DateTimeOffset objects.
obj | Object to compare. |
obj
, 1 - if current object is later than obj
, 0 - if current object is equal to obj
.
|
static |
Checks if two DateTimeOffset objects represent the same time point.
first | First object to compare. |
second | Second object to compare. |
first
is equal to second
, otherwise - false. ASPOSECPP_SHARED_API bool System::DateTimeOffset::Equals | ( | const DateTimeOffset & | other | ) | const |
Checks if two DateTimeOffset objects represents the same time point.
other | Object to compare. |
other
, otherwise - false. Checks if two DateTimeOffset objects represents the same time point.
obj | Object to compare. |
obj
, otherwise - false. ASPOSECPP_SHARED_API bool System::DateTimeOffset::EqualsExact | ( | const DateTimeOffset & | other | ) | const |
Checks if two DateTimeOffset objects represents the same time point and has the same offset.
other | Object to compare. |
other
, otherwise - false. ASPOSECPP_SHARED_API bool System::DateTimeOffset::EqualsExact | ( | const SharedPtr< Object > & | obj | ) | const |
Checks if two DateTimeOffset objects represents the same time point and has the same offset.
obj | Object to compare. |
obj
, otherwise - false.
|
static |
|
static |
Convert Unix-time to DateTimeOffset object.
milliseconds | Unix-time (number of milliseconds elapsed from 1970-01-01). |
|
static |
Convert Unix-time to DateTimeOffset object.
seconds | Unix-time (number of seconds elapsed from 1970-01-01). |
ASPOSECPP_SHARED_API DateTime System::DateTimeOffset::get_Date | ( | ) | const |
Gets date component of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_Day | ( | ) | const |
Gets day of the month of the current object.
ASPOSECPP_SHARED_API DayOfWeek System::DateTimeOffset::get_DayOfWeek | ( | ) | const |
Gets day of the week of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_DayOfYear | ( | ) | const |
Gets day of year of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_Hour | ( | ) | const |
Gets hour component of the current object.
ASPOSECPP_SHARED_API DateTime System::DateTimeOffset::get_LocalDateTime | ( | ) | const |
Gets DateTime value that represents the local date and time.
|
inline |
Gets millisecond component of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_Minute | ( | ) | const |
Gets minute component of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_Month | ( | ) | const |
Gets month component of the current object.
|
static |
Gets DateTimeOffset whose date and time are set to the current local-time and whose offset is set to local time's offset.
|
inline |
Gets offset from UTC.
|
inline |
Gets second component of the current object.
ASPOSECPP_SHARED_API int64_t System::DateTimeOffset::get_Ticks | ( | ) | const |
Gets number of ticks of the current object.
ASPOSECPP_SHARED_API TimeSpan System::DateTimeOffset::get_TimeOfDay | ( | ) | const |
Gets time of day of the current object.
ASPOSECPP_SHARED_API DateTime System::DateTimeOffset::get_UtcDateTime | ( | ) | const |
Gets DateTime value that represents the UTC date and time.
|
static |
Gets DateTimeOffset whose date and time are set to the current UTC-time and whose offset is TimeSpan::Zero.
ASPOSECPP_SHARED_API int64_t System::DateTimeOffset::get_UtcTicks | ( | ) | const |
Gets number of ticks of the current object in UTC time.
ASPOSECPP_SHARED_API int System::DateTimeOffset::get_Year | ( | ) | const |
Gets year component of the current object.
ASPOSECPP_SHARED_API int System::DateTimeOffset::GetHashCode | ( | ) | const |
Gets hash code for the current DateTimeOffset object.
|
inline |
ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator!= | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object and the specified DateTimeOffset object represent distinct date and time values.
other | The DateTimeOffset object to compare the current object with |
|
inline |
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::operator+ | ( | TimeSpan | value | ) | const |
Returns a new instance of DateTimeOffset class that represents the date and time value that is the sum of the value represented by the current object and the specified time span.
value | The time span to add to the value represented by the current object |
value
. ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::operator- | ( | TimeSpan | value | ) | const |
Returns a new instance of the DateTimeOffset class representing the date and time value which is the result of subtraction of the specified time span from the value represented by the current object.
value | A time interval to subtract |
value
from the value represented by the current object. ASPOSECPP_SHARED_API TimeSpan System::DateTimeOffset::operator- | ( | const DateTimeOffset & | other | ) | const |
Returns an instance of TimeSpan class that represents the time interval between the date and time values represented by the current and the specified objects.
other | An instance of DateTime class that marks one end of the interval to be calculated |
other
. ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator< | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object represents the date and time value that is earlier than the value represented by the specified DateTimeOffset object.
other | The DateTimeOffset object to compare the current object with |
other
, otherwise - false
|
inline |
ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator<= | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object represents the date and time value that is earlier than or the same as the value represented by the specified DateTimeOffset object.
other | The DateTimeOffset object to compare the current object with |
other
, otherwise - false
|
inline |
ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator== | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object and the specified DateTimeOffset object represent the same date and time value.
other | The DateTimeOffset object to compare the current object with |
|
inline |
ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator> | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object represents the date and time value that is later than the value represented by the specified DateTimeOffset object.
other | The DateTimeOffset object to compare the current object with |
other
, otherwise - false
|
inline |
ASPOSECPP_SHARED_API bool System::DateTimeOffset::operator>= | ( | const DateTimeOffset & | other | ) | const |
Determines if the current object represents the date and time value that is later than or the same as the value represented by the specified DateTimeOffset object.
other | The DateTimeOffset object to compare the current object with |
other
, otherwise - false
|
inline |
|
static |
Converts the specified string to DateTimeOffset equivalent.
input | String to convert. |
input
.
|
static |
Converts the specified string to DateTimeOffset object using the specified format provider and formatting style.
input | String to convert. |
provider | Format provider. |
styles | Date and time formatting styles. |
input
.
|
static |
Converts the specified string to DateTimeOffset object using the specified format, format provider and formatting style.
input | String to convert. |
format | Format string. |
provider | Format provider. |
styles | Date and time formatting styles. |
input
.
|
static |
Converts the specified string to DateTimeOffset object using the specified formats, format provider and formatting style.
input | String to convert. |
formats | Array of format strings. |
provider | Format provider. |
styles | Date and time formatting styles. |
input
. ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::Subtract | ( | TimeSpan | value | ) | const |
Subtracts a specified time interval from the current object.
value | Value to subtract. |
ASPOSECPP_SHARED_API TimeSpan System::DateTimeOffset::Subtract | ( | const DateTimeOffset & | value | ) | const |
Subtracts a specified DateTimeOffset value from the current object.
value | Value to subtract. |
ASPOSECPP_SHARED_API int64_t System::DateTimeOffset::ToFileTime | ( | ) | const |
Converts current object to the Windows file time.
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::ToLocalTime | ( | ) | const |
Converts current object to a object that represents the local time,
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::ToOffset | ( | TimeSpan | offset | ) | const |
Replace current object offset by the specified offset.
offset | UTC-offset. |
ASPOSECPP_SHARED_API String System::DateTimeOffset::ToString | ( | const String & | format, |
const SharedPtr< IFormatProvider > & | provider | ||
) | const |
Converts current object to string using the specified format and format provider.
format | Format string. |
provider | Format provider. |
ASPOSECPP_SHARED_API String System::DateTimeOffset::ToString | ( | const SharedPtr< IFormatProvider > & | provider | ) | const |
Converts current object to string using the specified format provider.
provider | Format provider. |
Converts current object to string using the specified format.
format | Format string. |
ASPOSECPP_SHARED_API String System::DateTimeOffset::ToString | ( | ) | const |
Converts current object to string.
ASPOSECPP_SHARED_API DateTimeOffset System::DateTimeOffset::ToUniversalTime | ( | ) | const |
Converts current object to a object that represents the UTC time,
ASPOSECPP_SHARED_API int64_t System::DateTimeOffset::ToUnixTimeMilliseconds | ( | ) | const |
Gets milliseconds elapsed from Unix epoch start.
ASPOSECPP_SHARED_API int64_t System::DateTimeOffset::ToUnixTimeSeconds | ( | ) | const |
Gets seconds elapsed from Unix epoch start.
|
static |
Tries to converts the specified string to DateTimeOffset object.
input | String to convert. |
result | DateTimeOffset that is equivalent to the input . |
input
converted successfully, otherwise - false.
|
static |
Tries to converts the specified string to DateTimeOffset object using the specified format provider and formatting style.
input | String to convert. |
provider | Format provider. |
styles | Date and time formatting styles. |
result | DateTimeOffset that is equivalent to the input . |
input
converted successfully, otherwise - false.
|
static |
Tries to converts the specified string to DateTimeOffset object using the specified formats, format provider and formatting style.
input | String to convert. |
formats | Arrays of format strings. |
provider | Format provider. |
styles | Date and time formatting styles. |
result | DateTimeOffset that is equivalent to the input . |
input
converted successfully, otherwise - false.
|
static |
Tries to converts the specified string to DateTimeOffset object using the specified format, format provider and formatting style.
input | String to convert. |
format | Format string. |
provider | Format provider. |
styles | Date and time formatting styles. |
result | DateTimeOffset that is equivalent to the input . |
input
converted successfully, otherwise - false.
|
inlinestatic |
|
static |
Gets maximum offset in ticks.
|
static |
Gets greatest DateTimeOffset value.
|
static |
Gets minimum offset in ticks.
|
static |
Gets earliest DateTimeOffset value.
|
static |
Gets Unix epoch start.