Day of the week: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: fixed example to handle option return from time.parse, so that it could compile) |
|||
Line 4,619: | Line 4,619: | ||
=={{header|Vlang}}== |
=={{header|Vlang}}== |
||
<lang |
<lang vlang>import time |
||
import time |
|||
fn main() { |
fn main() { |
||
for y := 2008; y <= 2121; y++ { |
|||
d := time.parse('${y}-12-25 00:00:00') or { |
|||
continue |
|||
⚫ | |||
} |
|||
} |
|||
if d.day_of_week() == 7 { |
|||
} |
|||
⚫ | |||
} |
|||
} |
|||
⚫ | |||
} |
|||
⚫ | |||
{{out}} |
{{out}} |