auto commit at 2026-03-25 17:37:53

This commit is contained in:
2026-03-25 17:37:53 +08:00
parent 53d6c6f4fc
commit 5bd67b766f
2 changed files with 24 additions and 10 deletions

14
,week Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env ruby
require 'date'
idx = ARGV[0] || '0'
idx = idx.to_i
today = Date.today + idx*7
monday = today - today.cwday + 1
sunday = monday + 6
puts "week-#{today.cweek}-#{monday.strftime('%m%d')}-#{sunday.strftime('%m%d')}"