Programmars at reddit, I got a date conversion issue
I'm not trying to reinvent the wheel or anything, but how does one go about converting BS with AD and vice versa? I looked over various forums, and reddit itself, the closest to a solution was using a database dumped with the number of days each Bikram Sambat variable month had within each year, corresponding with a Gregorian calendar equivalent.
I know this is absurd, but is there possibly a formula, or perhaps a regular pattern to figuring out the BS day from internal clock? I tried employing edge cases and whatnot, but the amount of variance I saw got me dizzy. And I don't think I'm ready scrape some 100+ years of info into an SQLite Database just for a bandaid solution. I'd love an explanation, and perhaps an answer as to why we cannot get conversion done without actually having a database to refer to.
Posted Dec 29, 2018, 12:51 PM UTC