计算N天前后的年月日时分秒是多少

输入天数:
365天前是2021-05-20 16:32:56
365天后是2023-05-20 16:32:56





部分N天前后日期对照表

序号 天数 往前算 往后算
1 5 2022-05-15 16:32:56 2022-05-25 16:32:56
2 7 2022-05-13 16:32:56 2022-05-27 16:32:56
3 20 2022-04-30 16:32:56 2022-06-09 16:32:56
4 50 2022-03-31 16:32:56 2022-07-09 16:32:56
5 100 2022-02-09 16:32:56 2022-08-28 16:32:56
6 200 2021-11-01 16:32:56 2022-12-06 16:32:56
7 300 2021-07-24 16:32:56 2023-03-16 16:32:56
8 1000 2019-08-24 16:32:56 2025-02-13 16:32:56
9 10000 1995-01-02 16:32:56 2049-10-05 16:32:56
10 20000 1967-08-17 16:32:56 2077-02-20 16:32:56
11 30000 1940-03-31 16:32:56 2104-07-09 16:32:56