Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Tuesday, 17-Sep-2024 21:33:50 JST翠星石 @grey @kaia @thatbrickster Should have used GNU date with GNU bash;
days_to_next_month() { d0=$(date -d "today" +%s) ; d1=$(date --date="$(date +%Y-%m-01) + 1 month" +%s) ; echo $(( (d1 - d0) / 3600 / 24 )) days ; }
days_to_next_month
13 days