MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / hasTimeZone

Function hasTimeZone

Tactility/Source/settings/time.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool hasTimeZone() {
53 Preferences preferences(TIME_SETTINGS_NAMESPACE);
54 std::string timezone;
55 if (!preferences.optString(TIMEZONE_PREFERENCES_KEY_NAME, timezone)) {
56 return false;
57 }
58 return !timezone.empty();
59}
60
61std::string getTimeZoneCode() {
62 Preferences preferences(TIME_SETTINGS_NAMESPACE);

Callers

nothing calls this directly

Calls 1

optStringMethod · 0.45

Tested by

no test coverage detected