Day of the week: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
→‎{{header|Vlang}}: fixed example to handle option return from time.parse, so that it could compile
Line 4,619:
 
=={{header|Vlang}}==
<lang govlang>import time
import time
 
fn main() {
for y := 2008; y <= 2121; y++ {
if d := time.parse('${y}-12-25 00:00:00').day_of_week() == 7or {
continue
println('December 25 ${y} is a Sunday')
}
}
if d.day_of_week() == 7 {
}
println('December 25 ${y} is a Sunday')
}
}
</lang>
}
}</lang>
 
{{out}}