MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / offsetZoneToDisplacement

Function offsetZoneToDisplacement

src/common/TimeZoneUtil.cpp:1164–1169  ·  view source on GitHub ↗

Gets the displacement from a offset-based time zone id.

Source from the content-addressed store, hash-verified

1162
1163// Gets the displacement from a offset-based time zone id.
1164static inline SSHORT offsetZoneToDisplacement(USHORT timeZone)
1165{
1166 fb_assert(isOffset(timeZone));
1167
1168 return (SSHORT) (int(timeZone) - ONE_DAY);
1169}
1170
1171static inline USHORT displacementToOffsetZone(SSHORT displacement)
1172{

Callers 4

formatMethod · 0.85
extractOffsetMethod · 0.85
localTimeStampToUtcMethod · 0.85
decodeTimeStampMethod · 0.85

Calls 1

isOffsetFunction · 0.85

Tested by

no test coverage detected