{
"name": "IronMan",
"phone_number": "555555555",
"number_of_guest": 10,
"tables": [
2
],
"reservation_start_at": "2020-10-15T10:00:00.861873Z",
"reservation_end": "2020-10-15T11:00:00.861873Z"
}Run Code Online (Sandbox Code Playgroud)
我陷入了需要生成带有时区的未来日期和时间以发送邮递员请求的步骤。该请求与预订功能有关。
在请求正文中,键值是,
"reservation_start_at": "2020-10-15T10:00:00.861873Z"
Run Code Online (Sandbox Code Playgroud)
我的问题是,如何为每个请求生成未来的日期和时间?
提前致谢 。