← 返回 stripe 的题目列表Email Time Update Problem
类型:online_judge
Write a function to update the received time of an email. The function takes an email identifier and a timestamp, then updates the received time of that email in the system. If the update fails, the function should return an error message.
Input
email_id (string): The identifier of the email.
timestamp (string): The new received time, format YYYY-MM-DD HH:MM:SS.
Output
If the update is successful, return SUCCESS.
If the email does not exist, return ERROR: Email ID not found.
If the timestamp format is invalid, return ERROR: Invalid timestamp format.
Example
Input
email_123 2023-10-05 12:00:00