In as few lines as possible describe why you love julia

This just came to my mind:

using Dates

# Find the next Friday the 13th that falls on April
tonext(today()) do d
   dayofweek(d) == Fri &&
   day(d) == 13 &&
   month(d) == Apr
end
# 2029-04-13

Python’s datetime is horrible to use…

12 Likes