July
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
Based on the pattern, I thought it should actually be much more common than that, but wanted an easy way to see it. So, I figured, I'll use PowerShell to identify the day of the week for July 1 in various years to see which ones were Fridays. They would have the same pattern shown above.
Here is my code:
for ($year=2000;$year -le 2020;$year++){As suspected, this pattern seems to show up quite often. And in fact, isn't even happening in 2012. It happened in July 2011. The time previous to that was 2005. It will happen again next in 2016.
[datetime]$date="July 1,$year"
Write-Host "Year: " $year " July 1 day of week: " $date.dayofweek
}
Do I have a point here? Not really. It was just fun to use PowerShell to debunk an Internet chain letter.
No comments:
Post a Comment