MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / GetOffset

Method GetOffset

Sources/Shared/Containers/DateTime.cpp:984–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982 }
983
984 std::int32_t DateTime::TimeZone::GetOffset() const noexcept
985 {
986 // Get the offset using standard library
987 // It returns the difference GMT-local while we want to have the offset _from_ GMT, hence the '-'
988 return (_offset == INT32_MIN ? -Implementation::GetTimeZone() : _offset);
989 }
990
991 DateTime::Tm::Tm() noexcept
992 : Millisecond(0), Second(0), Minute(0), Hour(0), Day(0), DayOfYear(0), Month(0), Year(-1), _dayOfWeek(-1)

Callers 4

TryGetTmFunction · 0.45
PartitionedMethod · 0.45
AdjustToTimezoneMethod · 0.45
AdjustFromTimezoneMethod · 0.45

Calls 1

GetTimeZoneFunction · 0.85

Tested by

no test coverage detected