MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _parse_message_time

Method _parse_message_time

src/services/duck_mail.py:155–162  ·  view source on GitHub ↗
(self, value: Optional[str])

Source from the content-addressed store, hash-verified

153 return unescape(re.sub(r"<[^>]+>", " ", text))
154
155 def _parse_message_time(self, value: Optional[str]) -> Optional[float]:
156 if not value:
157 return None
158 try:
159 normalized = value.replace("Z", "+00:00")
160 return datetime.fromisoformat(normalized).astimezone(timezone.utc).timestamp()
161 except Exception:
162 return None
163
164 def _message_search_text(self, summary: Dict[str, Any], detail: Dict[str, Any]) -> str:
165 sender = summary.get("from") or detail.get("from") or {}

Callers 1

get_verification_codeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected