closing date for June Mtn

Discussions regarding Skiing, Snowboarding, Snowmobiling, Cross country, Biking, Golfing, Fishing, Hiking, Climbing, and more, at June Mountain and the surrounding areas

Moderator: JuneGOssip

Re: closing date for June Mtn

Postby Jbaysurfer » Wed May 11, 2011 4:12 pm

CalvaryMike wrote:
mspamelablythe wrote:Stupid algorythm.

This is formula I use to calculate Easter in my Excel spreadsheets:

Public Function EasterUSNO(YYYY As Long) As Long
Dim C As Long
Dim N As Long
Dim K As Long
Dim I As Long
Dim J As Long
Dim L As Long
Dim M As Long
Dim D As Long

C = YYYY \ 100
N = YYYY - 19 * (YYYY \ 19)
K = (C - 17) \ 25
I = C - C \ 4 - (C - K) \ 3 + 19 * N + 15
I = I - 30 * (I \ 30)
I = I - (I \ 28) * (1 - (I \ 28) * (29 \ (I + 1)) * ((21 - N) \ 11))
J = YYYY + YYYY \ 4 + I + 2 - C + C \ 4
J = J - 7 * (J \ 7)
L = I - J
M = 3 + (L + 40) \ 44
D = L + 28 - 31 * (M \ 4)
EasterUSNO = DateSerial(YYYY, M, D)
End Function

Nerd!


That's pretty sweet though.
Biker395 wrote:All I can say is that I view the person who founded and grew the company as a hero, and the person that bought it and tore it down as a parasite. And I say that as an avowed capitalist.
Jbaysurfer
Dave's Run
Dave's Run
 
Posts: 1861
Joined: Mon Mar 09, 2009 4:03 pm
Location: 3 Sheets to the Wind and 4 cards to the Flush

Previous

Return to June Mountain

Who is online

Users browsing this forum: No registered users and 1 guest