Timeline for How to add X amount of year to YYYYMMDDHHMMSS format in bash?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 4, 2020 at 17:22 | comment | added | Chris W. | The user below is correct that this approach doesn't work if the day is February 29th. | |
| Aug 27, 2020 at 18:46 | comment | added | Cyrus | or only with bash: d=20031005000000; declare -i x; x=$d+10000000000; echo $x | |
| Aug 27, 2020 at 18:28 | comment | added | DaeYoung | I appreciate your reply. I didn't know about expr until now. I think I can parse out year and add 1 to it. | |
| Aug 27, 2020 at 18:20 | history | answered | Chris W. | CC BY-SA 4.0 |