Searched refs:iso8601Str (Results 1 – 2 of 2) sorted by relevance
34 std::string TimeFormatUtils::FormatDateTimeByTimeZone(const std::string &iso8601Str) in FormatDateTimeByTimeZone() argument38 if (!std::regex_match(iso8601Str, match, pattern)) { in FormatDateTimeByTimeZone()39 return iso8601Str; // not standard ISO8601 type string in FormatDateTimeByTimeZone()42 std::istringstream iss(iso8601Str); in FormatDateTimeByTimeZone()45 return iso8601Str; // cant prase time in FormatDateTimeByTimeZone()51 return iso8601Str; in FormatDateTimeByTimeZone()53 uint32_t length = iso8601Str.length(); in FormatDateTimeByTimeZone()55 if (iso8601Str.substr(length - 1, 1).compare("Z") != 0) { in FormatDateTimeByTimeZone()56 char symbol = iso8601Str.at(length - 5); in FormatDateTimeByTimeZone()62 int mins = std::stoi(iso8601Str.substr(length - 2, 2)); in FormatDateTimeByTimeZone()[all …]
32 …ing __attribute__((visibility("default"))) FormatDateTimeByTimeZone(const std::string &iso8601Str);