MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Offset

Method Offset

MonaBase/sources/Timezone.cpp:659–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659Int32 Timezone::Offset(const char* code ,bool& isDST) {
660 if (String::ICompare(code,"Z")==0 || String::ICompare(code,"GMT")==0 || String::ICompare(code,"UTC")==0) {
661 isDST = false;
662 return Date::GMT;
663 }
664 auto it = Timezones.find(code);
665 if (it == Timezones.end())
666 return Date::GMT;
667 isDST = it->second.second;
668 return it->second.first;
669}
670
671
672} // namespace Mona

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected