← 返回 doordash 的题目列表Dasher Pay Classic Problem
类型:online_judge
Given a date string, convert it to a Unix timestamp. The date string format is 'YYYY-MM-DD HH:MM:SS'. Implement a function to perform this conversion and return the corresponding timestamp.
Input
A date string in the format 'YYYY-MM-DD HH:MM:SS'.
Output
The corresponding Unix timestamp (integer).
Example
Input: '2023-10-22 15:30:00'
Output: 1697983800
Constraints
The date string format is always valid, no additional validation needed.
Example
Input
2023-10-22 15:30:00