Guest guest Posted July 30, 2001 Report Share Posted July 30, 2001 SrI: SrImatE rAmAnujAya namaH namO nArAyaNa! Dear all, When a fellow bhAgavata friend asked the way DwAdasi PAraNai time has to be calculated, aDiyEn replied back as an algorithm (just for a surprize and some amount of fun) since that bhAgavata is in the software field. Thought of just sharing it for time being .... /* Algorithm for determining the DwAdasi PAraNai Time-Range */ TSDT = Time Span of DwAdasi Thiti from Sun-Rise, converted to hrs-mts scale. TSDT takes values from Zero and upwards /* One nAzhi = 24 mts; 5 nAzhi = 2hrs */ H = Time Span of HarivAsaram converted to hrs-mts scale. /* H may take values from Zero and upwards, but always less that TSDT. H is Zero in many cases, but not always Zero. Important to know its value, though it would be usually small. Basically, one shouldn't eat during the HarivAsaram time period. */ ST = Sun Rise Time. /* TSDT, H and ST to be obtained from Calendar */ PT = PAraNai Time Range- A Real-valued Set. /* 6 nAzhi = 2hrs and 24mts = 144 mts */ If (TSDT >= 144 mts) then PT = [sT+H..ST+144]; /* PT is anytime between ST+H to ST+144 mts ; H won't take values as large as 144 mts*/ Else If (TSDT > 0 mts) then PT = [sT+H..ST+TSDT]; /* Here, TSDT is less than 144 mts, but greater than Zero. PT is anytime between ST+H to ST+TSDT */ Else PT = [sT+H..ST+144]; /* Here,TSDT is Zero ie.even before Sun-Rise, DwAdasi Thiti got over; It occurs very rarely. PT is same as that of the first case */ /* End of Algo */ aDiyEn rAmAnuja dAsan, anantapadmanAbhan. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.