12 lines
290 B
Fish
12 lines
290 B
Fish
function whoseturn
|
|
set start_date (date -d "2025-01-01" +%s)
|
|
set current_date (date +%s)
|
|
set days_passed (math floor\((math $current_date - $start_date) / 86400\))
|
|
|
|
if test (math $days_passed % 2) -eq 0
|
|
echo "Alex's turn"
|
|
else
|
|
echo "My turn"
|
|
end
|
|
end
|