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

Function getDesc

src/common/TimeZoneUtil.cpp:1134–1142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132//-------------------------------------
1133
1134static const TimeZoneDesc* getDesc(USHORT timeZone)
1135{
1136 const USHORT id = MAX_USHORT - timeZone;
1137 if (id < timeZoneStartup().getTimeZoneList().getCount())
1138 return &timeZoneStartup().getTimeZoneList()[id];
1139
1140 status_exception::raise(Arg::Gds(isc_invalid_timezone_id) << Arg::Num(timeZone));
1141 return nullptr;
1142}
1143
1144// Returns true if the time zone is offset-based or false if region-based.
1145static inline bool isOffset(USHORT timeZone)

Callers 10

pass2Method · 0.85
pass1Method · 0.85
pass2Method · 0.85
getStringMethod · 0.85
moveDescMethod · 0.85
formatMethod · 0.85
extractOffsetMethod · 0.85
localTimeStampToUtcMethod · 0.85
decodeTimeStampMethod · 0.85
TimeZoneRuleIteratorMethod · 0.85

Calls 4

raiseFunction · 0.85
GdsClass · 0.85
NumClass · 0.85
getCountMethod · 0.45

Tested by

no test coverage detected