GetUtcOffset()
TimeZoneInfo::GetUtcOffset(DateTime) const method
Calculates difference between time in this time zone and UTC time zone for a specified date and time.
TimeSpan System::TimeZoneInfo::GetUtcOffset(DateTime date_time) const
Arguments
Parameter | Type | Description |
---|---|---|
date_time | DateTime | Date and time. |
Return Value
Time difference between time zones.
TimeZoneInfo::GetUtcOffset(const DateTimeOffset&) const method
Calculates difference between time in this time zone and UTC time zone for a specified date and time.
TimeSpan System::TimeZoneInfo::GetUtcOffset(const DateTimeOffset &date_time_offset) const
Arguments
Parameter | Type | Description |
---|---|---|
date_time_offset | const DateTimeOffset& | Date and time. |
Return Value
Time difference between time zones.
See Also
- Class TimeSpan
- Class DateTime
- Class TimeZoneInfo
- Class DateTimeOffset
- Namespace System
- Library Aspose.Slides