How to use am method in apimocker

Best JavaScript code snippet using apimocker

punchang.js

Source:punchang.js Github

copy

Full Screen

1var currentDate = new Date();2var date = currentDate.getDate();3var month = currentDate.getMonth(); //Be careful! January is 0 not 14var year = currentDate.getFullYear();5var dateString = '';6if (month < 9) {7 if (date <= 9) {8 dateString = '0' + date + "-" + '0' + (month + 1) + "-" + year;9 } else if (date > 9) {10 dateString = date + "-" + '0' + (month + 1) + "-" + year;11 }12} else if (month > 9) {13 if (date <= 9) {14 dateString = '0' + date + "-" + (month + 1) + "-" + year;15 } else if (date > 9) {16 dateString = date + "-" + (month + 1) + "-" + year;17 }18} else if (month == 9) {19 if (date <= 9) {20 dateString = '0' + date + "-" + (month + 1) + "-" + year;21 } else if (date > 9) {22 dateString = date + "-" + (month + 1) + "-" + year;23 }24}25console.log("date" + dateString);26let today = document.getElementById('date');27let sunRise = document.getElementById('sunr');28let sunSet = document.getElementById('suns');29let moonRise = document.getElementById('moonr');30let moonSet = document.getElementById('moons');31let Tithi = document.getElementById('tithi');32let Naksh = document.getElementById('naksh');33let Yog = document.getElementById('yog');34let karan = document.getElementById('Karan');35let varr = document.getElementById('Var');36var sunr = '';37var suns = '';38var moonr = '';39var moons = '';40var tithi = '';41var naksh = '';42var yog = '';43var Karan = '';44var Var = '';45$(document).ready(function (e) {46 var mymodal = $('#punchang');47 setPunchangData();48 document.getElementById('myform').reset();49 setTimeout(function () {50 mymodal.modal('show');51 }, 2000);52 // mymodal.delay(50000).modal('show');53});54//०५:५८ ए. एम. ०६:४४ पी. एम.55function setPunchangData() {56 today.innerHTML = '<b>Panchang</b>' + '&nbsp;||&nbsp;<b>' + dateString + '</b>';57 switch (dateString) { 58 case '05-12-2020':59 sunr = '07:00 AM';60 suns = '05:24 PM';61 moonr = '09:49 PM';62 moons = '11:04 AM';63 tithi = 'Panchami upto 08:10 PM';64 naksh = 'Pushya upto 02:28 PM';65 yog = 'Brahma upto 09:34 AM';66 Karan = 'Kaulava upto 08:10 AM';67 Var = 'Shaniwara';68 break;69 case '06-12-2020':70 sunr = '07:00 AM';71 suns = '05:24 PM';72 moonr = '10:50 PM';73 moons = '11:47 AM';74 tithi = 'Shashthi upto 07:44 PM';75 naksh = 'Ashlesha upto 02:46 PM';76 yog = 'Indra upto 08:14 AM';77 Karan = 'Vaidhriti upto 06:29 AM, Dec 07';78 Var = 'Raviwara';79 break;80 case '07-12-2020':81 sunr = '07:01 AM';82 suns = '05:24 PM';83 moonr = '11:52 PM';84 moons = '12:26 PM';85 tithi = 'Saptami upto 06:47 PM';86 naksh = 'Magha upto 02:33 PM';87 yog = 'Vishkambha upto 04:19 AM, Dec 08';88 Karan = 'Vishti upto 07:20 AM';89 Var = 'Somawara';90 break;91 case '08-12-2020':92 sunr = '07:02 AM';93 suns = '05:24 PM';94 moonr = '12:55 AM, Dec 09';95 moons = '01:03 PM';96 tithi = 'Ashtami upto 05:17 PM';97 naksh = 'Purva Phalguni upto 01:48 PM';98 yog = 'Priti upto 01:43 AM, Dec 09';99 Karan = 'Kaulava upto 05:17 PM';100 Var = 'Mangalawara';101 break;102 case '09-12-2020':103 sunr = '07:03 AM';104 suns = '05:25 PM';105 moonr = '01:58 AM, Dec 10';106 moons = '01:39 PM';107 tithi = 'Navami upto 03:17 PM';108 naksh = 'Uttara Phalguni upto 12:33 PM';109 yog = 'Ayushman upto 10:44 PM';110 Karan = 'Garaja upto 03:17 PM';111 Var = 'Budhawara';112 break;113 case '10-12-2020':114 sunr = '07:03 AM';115 suns = '05:25 PM';116 moonr = '03:03 AM, Dec 11';117 moons = '02:15 PM';118 tithi = 'Dashami upto 12:51 PM';119 naksh = 'Hasta upto 10:51 AM';120 yog = 'Saubhagya upto 07:26 PM';121 Karan = 'Vishti upto 12:51 PM';122 Var = 'Guruwara';123 break;124 case '11-12-2020':125 sunr = '07:04 AM';126 suns = '05:25 PM';127 moonr = '04:10 AM, Dec 12';128 moons = '02:52 PM';129 tithi = 'Ekadashi upto 10:04 AM';130 naksh = 'Dwadashi upto 07:02 AM, Dec 12';131 yog = 'Chitra upto 08:48 AM';132 Karan = 'Swati upto 06:30 AM, Dec 12';133 Var = 'Shukrawara';134 break;135 case '12-12-2020':136 sunr = '07:05 AM';137 suns = '05:25 PM';138 moonr = '05:19 AM, Dec 13';139 moons = '03:33 PM';140 tithi = 'Trayodashi upto 03:52 AM, Dec 13';141 naksh = 'Vishakha upto 04:05 AM, Dec 13';142 yog = 'Atiganda upto 12:07 PM';143 Karan = 'Garaja upto 05:27 PM';144 Var = 'Shaniwara';145 break;146 case '13-12-2020':147 sunr = '07:05 AM';148 suns = '05:26 PM';149 moonr = '06:29 AM, Dec 14';150 moons = '04:19 PM';151 tithi = 'Chaturdashi upto 12:44 AM, Dec 14';152 naksh = 'Anuradha upto 01:40 AM, Dec 14';153 yog = 'Sukarman upto 08:18 AM';154 Karan = 'Dhriti upto 04:31 AM, Dec 14';155 Var = 'Raviwara';156 break;157 case '14-12-2020':158 sunr = '07:06 AM';159 suns = '05:26 PM';160 moonr = 'No Moonrise';161 moons = '05:11 PM';162 tithi = 'Amavasya upto 09:46 PM';163 naksh = 'Jyeshtha upto 11:26 PM';164 yog = 'Shula upto 12:53 AM, Dec 15';165 Karan = 'Chatushpada upto 11:13 AM';166 Var = 'Somawara';167 break;168 case '15-12-2020':169 sunr = '07:06 AM';170 suns = '05:26 PM';171 moonr = '07:38 AM';172 moons = '06:08 PM';173 tithi = 'Pratipada upto 07:06 PM';174 naksh = 'Mula upto 09:31 PM';175 yog = 'Ganda upto 09:32 PM';176 Karan = 'Kinstughna upto 08:23 AM';177 Var = 'Mangalawara';178 break;179 case '16-12-2020':180 sunr = '07:07 AM';181 suns = '05:27 PM';182 moonr = '08:41 AM';183 moons = '07:10 PM';184 tithi = 'Dwitiya upto 04:54 PM';185 naksh = 'Purva Ashadha upto 08:04 PM';186 yog = 'Vriddhi upto 06:34 PM';187 Karan = 'Kaulava upto 04:54 PM';188 Var = 'Budhawara';189 break;190 case '17-12-2020':191 sunr = '07:08 AM';192 suns = '05:27 PM';193 moonr = '09:38 AM';194 moons = '08:14 PM';195 tithi = 'Tritiya upto 03:17 PM';196 naksh = 'Uttara Ashadha upto 07:13 PM';197 yog = 'Dhruva upto 04:04 PM';198 Karan = 'Garaja upto 03:17 PM';199 Var = 'Guruwara';200 break;201 case '18-12-2020':202 sunr = '07:08 AM';203 suns = '05:28 PM';204 moonr = '10:26 AM';205 moons = '09:16 PM';206 tithi = 'Chaturthi upto 02:22 PM';207 naksh = 'Shravana upto 07:04 PM';208 yog = 'Vyaghata upto 02:08 PM';209 Karan = 'Vishti upto 02:22 PM';210 Var = 'Shukrawara';211 break;212 case '19-12-2020':213 sunr = '07:09 AM';214 suns = '05:28 PM';215 moonr = '11:08 AM';216 moons = '10:16 PM';217 tithi = 'Panchami upto 02:14 PM';218 naksh = 'Dhanishtha upto 07:40 PM';219 yog = 'Harshana upto 12:47 PM';220 Karan = 'Balava upto 02:14 PM';221 Var = 'Shaniwara';222 break;223 case '20-12-2020':224 sunr = '07:09 AM';225 suns = '05:29 PM';226 moonr = '11:44 AM';227 moons = '11:13 PM';228 tithi = 'Shashthi upto 02:52 PM';229 naksh = 'Shatabhisha upto 09:01 PM';230 yog = 'Vajra upto 12:03 PM';231 Karan = 'Taitila upto 02:52 PM';232 Var = 'Raviwara';233 break;234 case '21-12-2020':235 sunr = '07:10 AM';236 suns = '05:29 PM';237 moonr = '12:17 PM';238 moons = '12:07 AM, Dec 22';239 tithi = 'Saptami upto 04:14 PM';240 naksh = 'Purva Bhadrapada upto 11:03 PM';241 yog = 'Siddhi upto 11:52 AM';242 Karan = 'Vanija upto 04:14 PM';243 Var = 'Somawara';244 break;245 case '22-12-2020':246 sunr = '07:10 AM';247 suns = '05:30 PM';248 moonr = '12:47 PM';249 moons = '12:59 AM, Dec 23';250 tithi = 'Ashtami upto 06:14 PM';251 naksh = 'Uttara Bhadrapada upto 01:38 AM, Dec 23';252 yog = 'Vyatipata upto 12:11 PM';253 Karan = 'Bava upto 06:14 PM';254 Var = 'Mangalawara';255 break;256 case '23-12-2020':257 sunr = '07:11 AM';258 suns = '05:30 PM';259 moonr = '01:16 PM';260 moons = '01:51 AM, Dec 24';261 tithi = 'Navami upto 08:39 PM';262 naksh = 'Revati upto 04:33 AM, Dec 24';263 yog = 'Varigha upto 12:50 PM';264 Karan = 'Balava upto 07:24 AM';265 Var = 'Budhawara';266 break;267 case '24-12-2020':268 sunr = '07:11 AM';269 suns = '05:31 PM';270 moonr = '01:45 PM';271 moons = '02:43 AM, Dec 25';272 tithi = 'Dashami upto 11:17 PM';273 naksh = 'Ashwini upto Full Night';274 yog = 'Parigha upto 01:42 PM';275 Karan = 'Taitila upto 09:57 AM';276 Var = 'Guruwara';277 break;278 case '25-12-2020':279 sunr = '07:12 AM';280 suns = '05:31 PM';281 moonr = '02:15 PM';282 moons = '03:36 AM, Dec 26';283 tithi = 'Ekadashi upto 01:54 AM, Dec 26';284 naksh = 'Ashwini upto 07:37 AM';285 yog = 'Shiva upto 02:37 PM';286 Karan = 'Vanija upto 12:36 PM';287 Var = 'Shukrawara';288 break;289 case '26-12-2020':290 sunr = '07:12 AM';291 suns = '05:32 PM';292 moonr = '02:48 PM';293 moons = '04:31 AM, Dec 27';294 tithi = 'Dwadashi upto 04:18 AM, Dec 27';295 naksh = 'Bharani upto 10:36 AM';296 yog = 'Siddha upto 03:26 PM';297 Karan = 'Bava upto 03:08 PM';298 Var = 'Shaniwara';299 break;300 case '27-12-2020':301 sunr = '07:12 AM';302 suns = '05:32 PM';303 moonr = '03:24 PM';304 moons = '05:27 AM, Dec 28';305 tithi = 'Trayodashi upto 06:20 AM, Dec 28';306 naksh = 'Krittika upto 01:19 PM';307 yog = 'Sadhya upto 04:01 PM';308 Karan = 'Kaulava upto 05:22 PM';309 Var = 'Raviwara';310 break;311 case '28-12-2020':312 sunr = '07:13 AM';313 suns = '05:33 PM';314 moonr = '04:06 PM';315 moons = '06:23 AM, Dec 29';316 tithi = 'Chaturdashi upto Full Night';317 naksh = 'Rohini upto 03:40 PM';318 yog = 'Shubha upto 04:18 PM';319 Karan = 'Garaja upto 07:11 PM';320 Var = 'Somawara';321 break;322 case '29-12-2020':323 sunr = '07:13 AM';324 suns = '05:34 PM';325 moonr = '04:52 PM';326 moons = 'No Moonset';327 tithi = 'Chaturdashi upto 07:54 AM';328 naksh = 'Mrigashirsha upto 05:33 PM';329 yog = 'Shukla upto 04:13 PM';330 Karan = 'Vanija upto 07:54 AM';331 Var = 'Mangalawara';332 break;333 case '30-12-2020':334 sunr = '07:13 AM';335 suns = '05:34 PM';336 moonr = '05:45 PM';337 moons = '07:19 AM';338 tithi = 'Purnima upto 08:57 AM';339 naksh = 'Ardra upto 06:55 PM';340 yog = 'Brahma upto 03:44 PM';341 Karan = 'Bava upto 08:57 AM';342 Var = 'Budhawara';343 break;344 case '31-12-2020':345 sunr = '07:14 AM';346 suns = '05:35 PM';347 moonr = '06:42 PM';348 moons = '08:12 AM';349 tithi = 'Pratipada upto 09:30 AM';350 naksh = 'Punarvasu upto 07:49 PM';351 yog = 'Indra upto 02:52 PM';352 Karan = 'Kaulava upto 09:30 AM';353 Var = 'Guruwara';354 break;355 case '01-01-2021':356 sunr = '|| 07:14 AM';357 suns = '|| 05:36 PM';358 moonr = '|| 07:42 PM';359 moons = '|| 09:02 AM';360 tithi = '|| Dwitiya upto 09:33 AM';361 naksh = '|| Pushya upto 08:15 PM';362 yog = '|| Vaidhriti upto 01:38 PM';363 Karan = '|| Garaja upto 09:33 AM';364 Var = '|| Shukrawara';365 break;366case '02-01-2021':367 sunr = '|| 07:14 AM';368 suns = '|| 05:36 PM';369 moonr = '|| 08:44 PM';370 moons = '|| 09:47 AM';371 tithi = '|| Tritiya upto 09:09 AM';372 naksh = '|| Ashlesha upto 08:17 PM';373 yog = '|| Vishkambha upto 12:04 PM';374 Karan = '|| Vishti upto 09:09 AM';375 Var = '|| Shaniwara';376 break;377case '03-01-2021':378 sunr = '|| 07:14 AM';379 suns = '|| 05:37 PM';380 moonr = '|| 09:46 PM';381 moons = '|| 10:27 AM';382 tithi = '|| Chaturthi upto 08:22 AM';383 naksh = '|| Panchami upto 07:13 AM, Jan 04';384 yog = '|| Magha upto 07:57 PM';385 Karan = '|| Priti upto 10:11 AM';386 Var = '|| Raviwara';387 break;388case '04-01-2021':389 sunr = '|| 07:15 AM';390 suns = '|| 05:38 PM';391 moonr = '|| 10:48 PM';392 moons = '|| 11:05 AM';393 tithi = '|| Shashthi upto 05:46 AM, Jan 05';394 naksh = '|| Purva Phalguni upto 07:17 PM';395 yog = '|| Ayushman upto 08:02 AM';396 Karan = '|| Saubhagya upto 05:38 AM, Jan 05';397 Var = '|| Somawara';398 break;399case '05-01-2021':400 sunr = '|| 07:15 AM';401 suns = '|| 05:38 PM';402 moonr = '|| 11:50 PM';403 moons = '|| 11:40 AM';404 tithi = '|| Saptami upto 04:03 AM, Jan 06';405 naksh = '|| Uttara Phalguni upto 06:21 PM';406 yog = '|| Shobhana upto 03:01 AM, Jan 06';407 Karan = '|| Vishti upto 04:57 PM';408 Var = '|| Mangalawara';409 break;410case '06-01-2021':411 sunr = '|| 07:15 AM';412 suns = '|| 05:39 PM';413 moonr = '|| 12:53 AM, Jan 07';414 moons = '|| 12:15 PM';415 tithi = '|| Ashtami upto 02:06 AM, Jan 07';416 naksh = '|| Hasta upto 05:10 PM';417 yog = '|| Atiganda upto 12:13 AM, Jan 07';418 Karan = '|| Balava upto 03:06 PM';419 Var = '|| Budhawara';420 break;421case '07-01-2021':422 sunr = '|| 07:15 AM';423 suns = '|| 05:40 PM';424 moonr = '|| 01:57 AM, Jan 08';425 moons = '|| 12:51 PM';426 tithi = '|| Navami upto 11:57 PM';427 naksh = '|| Chitra upto 03:46 PM';428 yog = '|| Sukarman upto 09:16 PM';429 Karan = '|| Taitila upto 01:03 PM';430 Var = '|| Guruwara';431 break;432case '08-01-2021':433 sunr = '|| 07:15 AM';434 suns = '|| 05:41 PM';435 moonr = '|| 03:02 AM, Jan 09';436 moons = '|| 01:29 PM';437 tithi = '|| Dashami upto 09:40 PM';438 naksh = '|| Swati upto 02:13 PM';439 yog = '|| Dhriti upto 06:11 PM';440 Karan = '|| Vanija upto 10:49 AM';441 Var = '|| Shukrawara';442 break;443case '09-01-2021':444 sunr = '|| 07:15 AM';445 suns = '|| 05:42 PM';446 moonr = '|| 04:10 AM, Jan 10';447 moons = '|| 02:11 PM';448 tithi = '|| Ekadashi upto 07:17 PM';449 naksh = '|| Vishakha upto 12:32 PM';450 yog = '|| Shula upto 03:02 PM';451 Karan = '|| Bava upto 08:29 AM';452 Var = '|| Shaniwara';453 break;454case '10-01-2021':455 sunr = '|| 07:15 AM';456 suns = '|| 05:42 PM';457 moonr = '|| 05:17 AM, Jan 11';458 moons = '|| 02:58 PM';459 tithi = '|| Dwadashi upto 04:52 PM';460 naksh = '|| Anuradha upto 10:50 AM';461 yog = '|| Ganda upto 11:50 AM';462 Karan = '|| Taitila upto 04:52 PM';463 Var = '|| Raviwara';464 break;465case '11-01-2021':466 sunr = '|| 07:15 AM';467 suns = '|| 05:43 PM';468 moonr = '|| 06:22 AM, Jan 12';469 moons = '|| 03:52 PM';470 tithi = '|| Trayodashi upto 02:32 PM';471 naksh = '|| Jyeshtha upto 09:10 AM';472 yog = '|| Vriddhi upto 08:41 AM';473 Karan = '|| Dhruva upto 05:39 AM, Jan 12';474 Var = '|| Somawara';475 break;476case '12-01-2021':477 sunr = '|| 07:15 AM';478 suns = '|| 05:44 PM';479 moonr = '|| No Moonrise';480 moons = '|| 04:51 PM';481 tithi = '|| Chaturdashi upto 12:22 PM';482 naksh = '|| Mula upto 07:38 AM';483 yog = '|| Purva Ashadha upto 06:22 AM, Jan 13';484 Karan = '|| Vyaghata upto 02:48 AM, Jan 13';485 Var = '|| Mangalawara';486 break;487case '13-01-2021':488 sunr = '|| 07:15 AM';489 suns = '|| 05:45 PM';490 moonr = '|| 07:22 AM';491 moons = '|| 05:54 PM';492 tithi = '|| Amavasya upto 10:29 AM';493 naksh = '|| Uttara Ashadha upto 05:28 AM, Jan 14';494 yog = '|| Harshana upto 12:16 AM, Jan 14';495 Karan = '|| Nagava upto 10:29 AM';496 Var = '|| Budhawara';497 break;498case '14-01-2021':499 sunr = '|| 07:15 AM';500 suns = '|| 05:46 PM';501 moonr = '|| 08:15 AM';502 moons = '|| 06:57 PM';503 tithi = '|| Pratipada upto 09:01 AM';504 naksh = '|| Shravana upto 05:05 AM, Jan 15';505 yog = '|| Vajra upto 10:06 PM';506 Karan = '|| Bava upto 09:01 AM';507 Var = '|| Guruwara';508 break;509case '15-01-2021':510 sunr = '|| 07:15 AM';511 suns = '|| 05:46 PM';512 moonr = '|| 09:00 AM';513 moons = '|| 07:59 PM';514 tithi = '|| Dwitiya upto 08:04 AM';515 naksh = '|| Dhanishtha upto 05:17 AM, Jan 16';516 yog = '|| Siddhi upto 08:23 PM';517 Karan = '|| Kaulava upto 08:04 AM';518 Var = '|| Shukrawara';519 break;520case '16-01-2021':521 sunr = '|| 07:15 AM';522 suns = '|| 05:47 PM';523 moonr = '|| 09:39 AM';524 moons = '|| 08:59 PM';525 tithi = '|| Tritiya upto 07:45 AM';526 naksh = '|| Shatabhisha upto 06:10 AM, Jan 17';527 yog = '|| Vyatipata upto 07:12 PM';528 Karan = '|| Garaja upto 07:45 AM';529 Var = '|| Shaniwara';530 break;531case '17-01-2021':532 sunr = '|| 07:15 AM';533 suns = '|| 05:48 PM';534 moonr = '|| 10:14 AM';535 moons = '|| 09:55 PM';536 tithi = '|| Chaturthi upto 08:08 AM';537 naksh = '|| Purva Bhadrapada upto Full Night';538 yog = '|| Varigha upto 06:34 PM';539 Karan = '|| Vishti upto 08:08 AM';540 Var = '|| Raviwara';541 break;542case '18-01-2021':543 sunr = '|| 07:15 AM';544 suns = '|| 05:49 PM';545 moonr = '|| 10:45 AM';546 moons = '|| 10:49 PM';547 tithi = '|| Panchami upto 09:13 AM';548 naksh = '|| Purva Bhadrapada upto 07:43 AM';549 yog = '|| Parigha upto 06:27 PM';550 Karan = '|| Balava upto 09:13 AM';551 Var = '|| Somawara';552 break;553case '19-01-2021':554 sunr = '|| 07:14 AM';555 suns = '|| 05:50 PM';556 moonr = '|| 11:15 AM';557 moons = '|| 11:42 PM';558 tithi = '|| Shashthi upto 10:58 AM';559 naksh = '|| Uttara Bhadrapada upto 09:55 AM';560 yog = '|| Shiva upto 06:49 PM';561 Karan = '|| Taitila upto 10:58 AM';562 Var = '|| Mangalawara';563 break;564case '20-01-2021':565 sunr = '|| 07:14 AM';566 suns = '|| 05:51 PM';567 moonr = '|| 11:44 AM';568 moons = '|| 12:34 AM, Jan 21';569 tithi = '|| Saptami upto 01:14 PM';570 naksh = '|| Revati upto 12:37 PM';571 yog = '|| Siddha upto 07:31 PM';572 Karan = '|| Vanija upto 01:14 PM';573 Var = '|| Budhawara';574 break;575case '21-01-2021':576 sunr = '|| 07:14 AM';577 suns = '|| 05:51 PM';578 moonr = '|| 12:14 PM';579 moons = '|| 01:27 AM, Jan 22';580 tithi = '|| Ashtami upto 03:50 PM';581 naksh = '|| Ashwini upto 03:37 PM';582 yog = '|| Sadhya upto 08:25 PM';583 Karan = '|| Bava upto 03:50 PM';584 Var = '|| Guruwara';585 break;586case '22-01-2021':587 sunr = '|| 07:14 AM';588 suns = '|| 05:52 PM';589 moonr = '|| 12:46 PM';590 moons = '|| 02:21 AM, Jan 23';591 tithi = '|| Navami upto 06:29 PM';592 naksh = '|| Bharani upto 06:40 PM';593 yog = '|| Shubha upto 09:19 PM';594 Karan = '|| Kaulava upto 06:29 PM';595 Var = '|| Shukrawara';596 break;597case '23-01-2021':598 sunr = '|| 07:13 AM';599 suns = '|| 05:53 PM';600 moonr = '|| 01:21 PM';601 moons = '|| 03:16 AM, Jan 24';602 tithi = '|| Dashami upto 08:56 PM';603 naksh = '|| Krittika upto 09:33 PM';604 yog = '|| Shukla upto 10:04 PM';605 Karan = '|| Taitila upto 07:45 AM';606 Var = '|| Shaniwara';607 break;608case '24-01-2021':609 sunr = '|| 07:13 AM';610 suns = '|| 05:54 PM';611 moonr = '|| 02:00 PM';612 moons = '|| 04:12 AM, Jan 25';613 tithi = '|| Ekadashi upto 10:57 PM';614 naksh = '|| Rohini upto 12:01 AM, Jan 25';615 yog = '|| Brahma upto 10:30 PM';616 Karan = '|| Vanija upto 10:00 AM';617 Var = '|| Raviwara';618 break;619case '25-01-2021':620 sunr = '|| 07:13 AM';621 suns = '|| 05:55 PM';622 moonr = '|| 02:44 PM';623 moons = '|| 05:08 AM, Jan 26';624 tithi = '|| Dwadashi upto 12:24 AM, Jan 26';625 naksh = '|| Mrigashirsha upto 01:56 AM, Jan 26';626 yog = '|| Indra upto 10:29 PM';627 Karan = '|| Bava upto 11:46 AM';628 Var = '|| Somawara';629 break;630case '26-01-2021':631 sunr = '|| 07:12 AM';632 suns = '|| 05:56 PM';633 moonr = '|| 03:34 PM';634 moons = '|| 06:03 AM, Jan 27';635 tithi = '|| Trayodashi upto 01:11 AM, Jan 27';636 naksh = '|| Ardra upto 03:12 AM, Jan 27';637 yog = '|| Vaidhriti upto 09:59 PM';638 Karan = '|| Kaulava upto 12:53 PM';639 Var = '|| Mangalawara';640 break;641case '27-01-2021':642 sunr = '|| 07:12 AM';643 suns = '|| 05:56 PM';644 moonr = '|| 04:30 PM';645 moons = '|| 06:54 AM, Jan 28';646 tithi = '|| Chaturdashi upto 01:17 AM, Jan 28';647 naksh = '|| Punarvasu upto 03:49 AM, Jan 28';648 yog = '|| Vishkambha upto 08:57 PM';649 Karan = '|| Garaja upto 01:19 PM';650 Var = '|| Budhawara';651 break;652case '28-01-2021':653 sunr = '|| 07:11 AM';654 suns = '|| 05:57 PM';655 moonr = '|| 05:30 PM';656 moons = '|| No Moonset';657 tithi = '|| Purnima upto 12:45 AM, Jan 29';658 naksh = '|| Pushya upto 03:51 AM, Jan 29';659 yog = '|| Priti upto 07:25 PM';660 Karan = '|| Vishti upto 01:05 PM';661 Var = '|| Guruwara';662 break;663case '29-01-2021':664 sunr = '|| 07:11 AM';665 suns = '|| 05:58 PM';666 moonr = '|| 06:33 PM';667 moons = '|| 07:42 AM';668 tithi = '|| Pratipada upto 11:41 PM';669 naksh = '|| Ashlesha upto 03:21 AM, Jan 30';670 yog = '|| Ayushman upto 05:28 PM';671 Karan = '|| Balava upto 12:17 PM';672 Var = '|| Shukrawara';673 break;674case '30-01-2021':675 sunr = '|| 07:10 AM';676 suns = '|| 05:59 PM';677 moonr = '|| 07:37 PM';678 moons = '|| 08:25 AM';679 tithi = '|| Dwitiya upto 10:12 PM';680 naksh = '|| Magha upto 02:28 AM, Jan 31';681 yog = '|| Saubhagya upto 03:09 PM';682 Karan = '|| Taitila upto 10:59 AM';683 Var = '|| Shaniwara';684 break;685case '31-01-2021':686 sunr = '|| 07:10 AM';687 suns = '|| 06:00 PM';688 moonr = '|| 08:40 PM';689 moons = '|| 09:04 AM';690 tithi = '|| Tritiya upto 08:24 PM';691 naksh = '|| Purva Phalguni upto 01:18 AM, Feb 01';692 yog = '|| Shobhana upto 12:33 PM';693 Karan = '|| Vanija upto 09:20 AM';694 Var = '|| Raviwara';695 break;696case '01-02-2021':697 sunr = '|| 07:09 AM';698 suns = '|| 06:00 PM';699 moonr = '|| 09:44 PM';700 moons = '|| 09:41 AM';701 tithi = '|| Chaturthi upto 06:24 PM';702 naksh = '|| Uttara Phalguni upto 11:58 PM';703 yog = '|| Atiganda upto 09:46 AM';704 Karan = '|| Sukarman upto 06:53 AM, Feb 02';705 Var = '|| Somawara';706 break;707case '02-02-2021':708 sunr = '|| 07:09 AM';709 suns = '|| 06:01 PM';710 moonr = '|| 10:47 PM';711 moons = '|| 10:16 AM';712 tithi = '|| Panchami upto 04:19 PM';713 naksh = '|| Hasta upto 10:33 PM';714 yog = '|| Dhriti upto 03:57 AM, Feb 03';715 Karan = '|| Taitila upto 04:19 PM';716 Var = '|| Mangalawara';717 break;718case '03-02-2021':719 sunr = '|| 07:08 AM';720 suns = '|| 06:02 PM';721 moonr = '|| 11:50 PM';722 moons = '|| 10:52 AM';723 tithi = '|| Shashthi upto 02:12 PM';724 naksh = '|| Chitra upto 09:08 PM';725 yog = '|| Shula upto 01:01 AM, Feb 04';726 Karan = '|| Vanija upto 02:12 PM';727 Var = '|| Budhawara';728 break;729case '04-02-2021':730 sunr = '|| 07:08 AM';731 suns = '|| 06:03 PM';732 moonr = '|| 12:55 AM, Feb 05';733 moons = '|| 11:29 AM';734 tithi = '|| Saptami upto 12:07 PM';735 naksh = '|| Swati upto 07:45 PM';736 yog = '|| Ganda upto 10:09 PM';737 Karan = '|| Bava upto 12:07 PM';738 Var = '|| Guruwara';739 break;740case '05-02-2021':741 sunr = '|| 07:07 AM';742 suns = '|| 06:04 PM';743 moonr = '|| 02:00 AM, Feb 06';744 moons = '|| 12:09 PM';745 tithi = '|| Ashtami upto 10:07 AM';746 naksh = '|| Vishakha upto 06:28 PM';747 yog = '|| Vriddhi upto 07:21 PM';748 Karan = '|| Kaulava upto 10:07 AM';749 Var = '|| Shukrawara';750 break;751case '06-02-2021':752 sunr = '|| 07:06 AM';753 suns = '|| 06:04 PM';754 moonr = '|| 03:06 AM, Feb 07';755 moons = '|| 12:53 PM';756 tithi = '|| Navami upto 08:13 AM';757 naksh = '|| Dashami upto 06:26 AM, Feb 07';758 yog = '|| Anuradha upto 05:18 PM';759 Karan = '|| Dhruva upto 04:38 PM';760 Var = '|| Shaniwara';761 break;762case '07-02-2021':763 sunr = '|| 07:06 AM';764 suns = '|| 06:05 PM';765 moonr = '|| 04:10 AM, Feb 08';766 moons = '|| 01:43 PM';767 tithi = '|| Ekadashi upto 04:47 AM, Feb 08';768 naksh = '|| Jyeshtha upto 04:15 PM';769 yog = '|| Vyaghata upto 02:01 PM';770 Karan = '|| Bava upto 05:35 PM';771 Var = '|| Raviwara';772 break;773case '08-02-2021':774 sunr = '|| 07:05 AM';775 suns = '|| 06:06 PM';776 moonr = '|| 05:11 AM, Feb 09';777 moons = '|| 02:39 PM';778 tithi = '|| Dwadashi upto 03:19 AM, Feb 09';779 naksh = '|| Mula upto 03:21 PM';780 yog = '|| Harshana upto 11:32 AM';781 Karan = '|| Kaulava upto 04:02 PM';782 Var = '|| Somawara';783 break;784case '09-02-2021':785 sunr = '|| 07:04 AM';786 suns = '|| 06:07 PM';787 moonr = '|| 06:05 AM, Feb 10';788 moons = '|| 03:39 PM';789 tithi = '|| Trayodashi upto 02:05 AM, Feb 10';790 naksh = '|| Purva Ashadha upto 02:39 PM';791 yog = '|| Vajra upto 09:11 AM';792 Karan = '|| Siddhi upto 07:02 AM, Feb 10';793 Var = '|| Mangalawara';794 break;795case '10-02-2021':796 sunr = '|| 07:03 AM';797 suns = '|| 06:08 PM';798 moonr = '|| 06:52 AM, Feb 11';799 moons = '|| 04:41 PM';800 tithi = '|| Chaturdashi upto 01:08 AM, Feb 11';801 naksh = '|| Uttara Ashadha upto 02:12 PM';802 yog = '|| Vyatipata upto 05:09 AM, Feb 11';803 Karan = '|| Vishti upto 01:34 PM';804 Var = '|| Budhawara';805 break;806case '11-02-2021':807 sunr = '|| 07:03 AM';808 suns = '|| 06:08 PM';809 moonr = '|| No Moonrise';810 moons = '|| 05:44 PM';811 tithi = '|| Amavasya upto 12:35 AM, Feb 12';812 naksh = '|| Shravana upto 02:05 PM';813 yog = '|| Varigha upto 03:33 AM, Feb 12';814 Karan = '|| Chatushpada upto 12:48 PM';815 Var = '|| Guruwara';816 break;817case '12-02-2021':818 sunr = '|| 07:02 AM';819 suns = '|| 06:09 PM';820 moonr = '|| 07:34 AM';821 moons = '|| 06:44 PM';822 tithi = '|| Pratipada upto 12:29 AM, Feb 13';823 naksh = '|| Dhanishtha upto 02:23 PM';824 yog = '|| Parigha upto 02:20 AM, Feb 13';825 Karan = '|| Kinstughna upto 12:28 PM';826 Var = '|| Shukrawara';827 break;828case '13-02-2021':829 sunr = '|| 07:01 AM';830 suns = '|| 06:10 PM';831 moonr = '|| 08:10 AM';832 moons = '|| 07:42 PM';833 tithi = '|| Dwitiya upto 12:56 AM, Feb 14';834 naksh = '|| Shatabhisha upto 03:11 PM';835 yog = '|| Shiva upto 01:33 AM, Feb 14';836 Karan = '|| Balava upto 12:38 PM';837 Var = '|| Shaniwara';838 break;839case '14-02-2021':840 sunr = '|| 07:00 AM';841 suns = '|| 06:11 PM';842 moonr = '|| 08:43 AM';843 moons = '|| 08:38 PM';844 tithi = '|| Tritiya upto 01:58 AM, Feb 15';845 naksh = '|| Purva Bhadrapada upto 04:33 PM';846 yog = '|| Siddha upto 01:13 AM, Feb 15';847 Karan = '|| Taitila upto 01:23 PM';848 Var = '|| Raviwara';849 break;850case '15-02-2021':851 sunr = '|| 06:59 AM';852 suns = '|| 06:11 PM';853 moonr = '|| 09:14 AM';854 moons = '|| 09:32 PM';855 tithi = '|| Chaturthi upto 03:36 AM, Feb 16';856 naksh = '|| Uttara Bhadrapada upto 06:29 PM';857 yog = '|| Sadhya upto 01:19 AM, Feb 16';858 Karan = '|| Vanija upto 02:43 PM';859 Var = '|| Somawara';860 break;861case '16-02-2021':862 sunr = '|| 06:59 AM';863 suns = '|| 06:12 PM';864 moonr = '|| 09:43 AM';865 moons = '|| 10:25 PM';866 tithi = '|| Panchami upto 05:46 AM, Feb 17';867 naksh = '|| Revati upto 08:57 PM';868 yog = '|| Shubha upto 01:50 AM, Feb 17';869 Karan = '|| Bava upto 04:38 PM';870 Var = '|| Mangalawara';871 break;872case '17-02-2021':873 sunr = '|| 06:58 AM';874 suns = '|| 06:13 PM';875 moonr = '|| 10:13 AM';876 moons = '|| 11:17 PM';877 tithi = '|| Shashthi upto Full Night';878 naksh = '|| Ashwini upto 11:49 PM';879 yog = '|| Shukla upto 02:39 AM, Feb 18';880 Karan = '|| Kaulava upto 06:59 PM';881 Var = '|| Budhawara';882 break;883case '18-02-2021':884 sunr = '|| 06:57 AM';885 suns = '|| 06:13 PM';886 moonr = '|| 10:44 AM';887 moons = '|| 12:11 AM, Feb 19';888 tithi = '|| Shashthi upto 08:17 AM';889 naksh = '|| Bharani upto 02:54 AM, Feb 19';890 yog = '|| Brahma upto 03:37 AM, Feb 19';891 Karan = '|| Taitila upto 08:17 AM';892 Var = '|| Guruwara';893 break;894case '19-02-2021':895 sunr = '|| 06:56 AM';896 suns = '|| 06:14 PM';897 moonr = '|| 11:17 AM';898 moons = '|| 01:05 AM, Feb 20';899 tithi = '|| Saptami upto 10:58 AM';900 naksh = '|| Krittika upto 05:58 AM, Feb 20';901 yog = '|| Indra upto 04:33 AM, Feb 20';902 Karan = '|| Vanija upto 10:58 AM';903 Var = '|| Shukrawara';904 break;905case '20-02-2021':906 sunr = '|| 06:55 AM';907 suns = '|| 06:15 PM';908 moonr = '|| 11:54 AM';909 moons = '|| 02:00 AM, Feb 21';910 tithi = '|| Ashtami upto 01:31 PM';911 naksh = '|| Rohini upto Full Night';912 yog = '|| Vaidhriti upto 05:16 AM, Feb 21';913 Karan = '|| Bava upto 01:31 PM';914 Var = '|| Shaniwara';915 break;916case '21-02-2021':917 sunr = '|| 06:54 AM';918 suns = '|| 06:16 PM';919 moonr = '|| 12:35 PM';920 moons = '|| 02:56 AM, Feb 22';921 tithi = '|| Navami upto 03:42 PM';922 naksh = '|| Rohini upto 08:44 AM';923 yog = '|| Vishkambha upto 05:35 AM, Feb 22';924 Karan = '|| Kaulava upto 03:42 PM';925 Var = '|| Raviwara';926 break;927case '22-02-2021':928 sunr = '|| 06:53 AM';929 suns = '|| 06:16 PM';930 moonr = '|| 01:22 PM';931 moons = '|| 03:50 AM, Feb 23';932 tithi = '|| Dashami upto 05:16 PM';933 naksh = '|| Mrigashirsha upto 10:58 AM';934 yog = '|| Priti upto 05:24 AM, Feb 23';935 Karan = '|| Garaja upto 05:16 PM';936 Var = '|| Somawara';937 break;938case '23-02-2021':939 sunr = '|| 06:52 AM';940 suns = '|| 06:17 PM';941 moonr = '|| 02:15 PM';942 moons = '|| 04:43 AM, Feb 24';943 tithi = '|| Ekadashi upto 06:05 PM';944 naksh = '|| Ardra upto 12:31 PM';945 yog = '|| Ayushman upto 04:35 AM, Feb 24';946 Karan = '|| Vishti upto 06:05 PM';947 Var = '|| Mangalawara';948 break;949case '24-02-2021':950 sunr = '|| 06:51 AM';951 suns = '|| 06:18 PM';952 moonr = '|| 03:13 PM';953 moons = '|| 05:32 AM, Feb 25';954 tithi = '|| Dwadashi upto 06:05 PM';955 naksh = '|| Punarvasu upto 01:17 PM';956 yog = '|| Saubhagya upto 03:10 AM, Feb 25';957 Karan = '|| Balava upto 06:05 PM';958 Var = '|| Budhawara';959 break;960case '25-02-2021':961 sunr = '|| 06:50 AM';962 suns = '|| 06:18 PM';963 moonr = '|| 04:15 PM';964 moons = '|| 06:18 AM, Feb 26';965 tithi = '|| Trayodashi upto 05:18 PM';966 naksh = '|| Pushya upto 01:17 PM';967 yog = '|| Shobhana upto 01:08 AM, Feb 26';968 Karan = '|| Taitila upto 05:18 PM';969 Var = '|| Guruwara';970 break;971case '26-02-2021':972 sunr = '|| 06:49 AM';973 suns = '|| 06:19 PM';974 moonr = '|| 05:20 PM';975 moons = '|| No Moonset';976 tithi = '|| Chaturdashi upto 03:49 PM';977 naksh = '|| Ashlesha upto 12:35 PM';978 yog = '|| Atiganda upto 10:36 PM';979 Karan = '|| Vanija upto 03:49 PM';980 Var = '|| Shukrawara';981 break;982case '27-02-2021':983 sunr = '|| 06:48 AM';984 suns = '|| 06:20 PM';985 moonr = '|| 06:25 PM';986 moons = '|| 06:59 AM';987 tithi = '|| Purnima upto 01:46 PM';988 naksh = '|| Magha upto 11:18 AM';989 yog = '|| Sukarman upto 07:38 PM';990 Karan = '|| Bava upto 01:46 PM';991 Var = '|| Shaniwara';992 break;993case '28-02-2021':994 sunr = '|| 06:47 AM';995 suns = '|| 06:20 PM';996 moonr = '|| 07:30 PM';997 moons = '|| 07:38 AM';998 tithi = '|| Pratipada upto 11:18 AM';999 naksh = '|| Purva Phalguni upto 09:36 AM';1000 yog = '|| Dhriti upto 04:22 PM';1001 Karan = '|| Kaulava upto 11:18 AM';1002 Var = '|| Raviwara';1003 break;1004case '01-03-2021':1005 sunr = '|| 06:46 AM';1006 suns = '|| 06:21 PM';1007 moonr = '|| 08:35 PM';1008 moons = '|| 08:14 AM';1009 tithi = '|| Dwitiya upto 08:35 AM';1010 naksh = '|| Tritiya upto 05:46 AM, Mar 02';1011 yog = '|| Uttara Phalguni upto 07:37 AM';1012 Karan = '|| Hasta upto 05:32 AM, Mar 02';1013 Var = '|| Somawara';1014 break;1015case '02-03-2021':1016 sunr = '|| 06:45 AM';1017 suns = '|| 06:22 PM';1018 moonr = '|| 09:41 PM';1019 moons = '|| 08:51 AM';1020 tithi = '|| Chaturthi upto 02:59 AM, Mar 03';1021 naksh = '|| Chitra upto 03:29 AM, Mar 03';1022 yog = '|| Ganda upto 09:26 AM';1023 Karan = '|| Vriddhi upto 05:59 AM, Mar 03';1024 Var = '|| Mangalawara';1025 break;1026case '03-03-2021':1027 sunr = '|| 06:44 AM';1028 suns = '|| 06:22 PM';1029 moonr = '|| 10:47 PM';1030 moons = '|| 09:28 AM';1031 tithi = '|| Panchami upto 12:21 AM, Mar 04';1032 naksh = '|| Swati upto 01:36 AM, Mar 04';1033 yog = '|| Dhruva upto 02:41 AM, Mar 04';1034 Karan = '|| Kaulava upto 01:38 PM';1035 Var = '|| Budhawara';1036 break;1037case '04-03-2021':1038 sunr = '|| 06:43 AM';1039 suns = '|| 06:23 PM';1040 moonr = '|| 11:53 PM';1041 moons = '|| 10:08 AM';1042 tithi = '|| Shashthi upto 09:58 PM';1043 naksh = '|| Vishakha upto 11:58 PM';1044 yog = '|| Vyaghata upto 11:35 PM';1045 Karan = '|| Garaja upto 11:08 AM';1046 Var = '|| Guruwara';1047 break;1048case '05-03-2021':1049 sunr = '|| 06:42 AM';1050 suns = '|| 06:23 PM';1051 moonr = '|| 01:00 AM, Mar 06';1052 moons = '|| 10:51 AM';1053 tithi = '|| Saptami upto 07:54 PM';1054 naksh = '|| Anuradha upto 10:38 PM';1055 yog = '|| Harshana upto 08:44 PM';1056 Karan = '|| Vishti upto 08:54 AM';1057 Var = '|| Shukrawara';1058 break;1059case '06-03-2021':1060 sunr = '|| 06:41 AM';1061 suns = '|| 06:24 PM';1062 moonr = '|| 02:05 AM, Mar 07';1063 moons = '|| 11:40 AM';1064 tithi = '|| Ashtami upto 06:10 PM';1065 naksh = '|| Jyeshtha upto 09:38 PM';1066 yog = '|| Vajra upto 06:10 PM';1067 Karan = '|| Balava upto 06:59 AM';1068 Var = '|| Shaniwara';1069 break;1070case '07-03-2021':1071 sunr = '|| 06:40 AM';1072 suns = '|| 06:25 PM';1073 moonr = '|| 03:06 AM, Mar 08';1074 moons = '|| 12:33 PM';1075 tithi = '|| Navami upto 04:47 PM';1076 naksh = '|| Mula upto 08:59 PM';1077 yog = '|| Siddhi upto 03:52 PM';1078 Karan = '|| Garaja upto 04:47 PM';1079 Var = '|| Raviwara';1080 break;1081case '08-03-2021':1082 sunr = '|| 06:39 AM';1083 suns = '|| 06:25 PM';1084 moonr = '|| 04:01 AM, Mar 09';1085 moons = '|| 01:32 PM';1086 tithi = '|| Dashami upto 03:44 PM';1087 naksh = '|| Purva Ashadha upto 08:40 PM';1088 yog = '|| Vyatipata upto 01:51 PM';1089 Karan = '|| Vishti upto 03:44 PM';1090 Var = '|| Somawara';1091 break;1092case '09-03-2021':1093 sunr = '|| 06:38 AM';1094 suns = '|| 06:26 PM';1095 moonr = '|| 04:49 AM, Mar 10';1096 moons = '|| 02:32 PM';1097 tithi = '|| Ekadashi upto 03:02 PM';1098 naksh = '|| Uttara Ashadha upto 08:42 PM';1099 yog = '|| Varigha upto 12:06 PM';1100 Karan = '|| Balava upto 03:02 PM';1101 Var = '|| Mangalawara';1102 break;1103case '10-03-2021':1104 sunr = '|| 06:36 AM';1105 suns = '|| 06:27 PM';1106 moonr = '|| 05:32 AM, Mar 11';1107 moons = '|| 03:34 PM';1108 tithi = '|| Dwadashi upto 02:40 PM';1109 naksh = '|| Shravana upto 09:03 PM';1110 yog = '|| Parigha upto 10:37 AM';1111 Karan = '|| Taitila upto 02:40 PM';1112 Var = '|| Budhawara';1113 break;1114case '11-03-2021':1115 sunr = '|| 06:35 AM';1116 suns = '|| 06:27 PM';1117 moonr = '|| 06:09 AM, Mar 12';1118 moons = '|| 04:34 PM';1119 tithi = '|| Trayodashi upto 02:39 PM';1120 naksh = '|| Dhanishtha upto 09:45 PM';1121 yog = '|| Shiva upto 09:25 AM';1122 Karan = '|| Vanija upto 02:39 PM';1123 Var = '|| Guruwara';1124 break;1125case '12-03-2021':1126 sunr = '|| 06:34 AM';1127 suns = '|| 06:28 PM';1128 moonr = '|| No Moonrise';1129 moons = '|| 05:32 PM';1130 tithi = '|| Chaturdashi upto 03:02 PM';1131 naksh = '|| Shatabhisha upto 10:51 PM';1132 yog = '|| Siddha upto 08:30 AM';1133 Karan = '|| Shakuni upto 03:02 PM';1134 Var = '|| Shukrawara';1135 break;1136case '13-03-2021':1137 sunr = '|| 06:33 AM';1138 suns = '|| 06:28 PM';1139 moonr = '|| 06:43 AM';1140 moons = '|| 06:28 PM';1141 tithi = '|| Amavasya upto 03:50 PM';1142 naksh = '|| Purva Bhadrapada upto 12:22 AM, Mar 14';1143 yog = '|| Sadhya upto 07:55 AM';1144 Karan = '|| Nagava upto 03:50 PM';1145 Var = '|| Shaniwara';1146 break;1147case '14-03-2021':1148 sunr = '|| 06:32 AM';1149 suns = '|| 06:29 PM';1150 moonr = '|| 07:14 AM';1151 moons = '|| 07:23 PM';1152 tithi = '|| Pratipada upto 05:06 PM';1153 naksh = '|| Uttara Bhadrapada upto 02:20 AM, Mar 15';1154 yog = '|| Shubha upto 07:40 AM';1155 Karan = '|| Bava upto 05:06 PM';1156 Var = '|| Raviwara';1157 break;1158case '15-03-2021':1159 sunr = '|| 06:31 AM';1160 suns = '|| 06:29 PM';1161 moonr = '|| 07:43 AM';1162 moons = '|| 08:16 PM';1163 tithi = '|| Dwitiya upto 06:49 PM';1164 naksh = '|| Revati upto 04:44 AM, Mar 16';1165 yog = '|| Shukla upto 07:47 AM';1166 Karan = '|| Kaulava upto 06:49 PM';1167 Var = '|| Somawara';1168 break;1169case '16-03-2021':1170 sunr = '|| 06:30 AM';1171 suns = '|| 06:30 PM';1172 moonr = '|| 08:13 AM';1173 moons = '|| 09:09 PM';1174 tithi = '|| Tritiya upto 08:58 PM';1175 naksh = '|| Ashwini upto Full Night';1176 yog = '|| Brahma upto 08:15 AM';1177 Karan = '|| Taitila upto 07:51 AM';1178 Var = '|| Mangalawara';1179 break;1180case '17-03-2021':1181 sunr = '|| 06:29 AM';1182 suns = '|| 06:31 PM';1183 moonr = '|| 08:43 AM';1184 moons = '|| 10:02 PM';1185 tithi = '|| Chaturthi upto 11:28 PM';1186 naksh = '|| Ashwini upto 07:31 AM';1187 yog = '|| Indra upto 09:00 AM';1188 Karan = '|| Vanija upto 10:11 AM';1189 Var = '|| Budhawara';1190 break;1191case '18-03-2021':1192 sunr = '|| 06:27 AM';1193 suns = '|| 06:31 PM';1194 moonr = '|| 09:15 AM';1195 moons = '|| 10:56 PM';1196 tithi = '|| Panchami upto 02:09 AM, Mar 19';1197 naksh = '|| Bharani upto 10:35 AM';1198 yog = '|| Vaidhriti upto 09:58 AM';1199 Karan = '|| Bava upto 12:48 PM';1200 Var = '|| Guruwara';1201 break;1202case '19-03-2021':1203 sunr = '|| 06:26 AM';1204 suns = '|| 06:32 PM';1205 moonr = '|| 09:50 AM';1206 moons = '|| 11:51 PM';1207 tithi = '|| Shashthi upto 04:48 AM, Mar 20';1208 naksh = '|| Krittika upto 01:44 PM';1209 yog = '|| Vishkambha upto 11:00 AM';1210 Karan = '|| Kaulava upto 03:30 PM';1211 Var = '|| Shukrawara';1212 break;1213case '20-03-2021':1214 sunr = '|| 06:25 AM';1215 suns = '|| 06:32 PM';1216 moonr = '|| 10:29 AM';1217 moons = '|| 12:45 AM, Mar 21';1218 tithi = '|| Saptami upto Full Night';1219 naksh = '|| Rohini upto 04:46 PM';1220 yog = '|| Priti upto 11:58 AM';1221 Karan = '|| Garaja upto 06:02 PM';1222 Var = '|| Shaniwara';1223 break;1224case '21-03-2021':1225 sunr = '|| 06:24 AM';1226 suns = '|| 06:33 PM';1227 moonr = '|| 11:13 AM';1228 moons = '|| 01:40 AM, Mar 22';1229 tithi = '|| Saptami upto 07:09 AM';1230 naksh = '|| Mrigashirsha upto 07:25 PM';1231 yog = '|| Ayushman upto 12:40 PM';1232 Karan = '|| Vanija upto 07:09 AM';1233 Var = '|| Raviwara';1234 break;1235case '22-03-2021':1236 sunr = '|| 06:23 AM';1237 suns = '|| 06:33 PM';1238 moonr = '|| 12:02 PM';1239 moons = '|| 02:33 AM, Mar 23';1240 tithi = '|| Ashtami upto 09:00 AM';1241 naksh = '|| Ardra upto 09:28 PM';1242 yog = '|| Saubhagya upto 12:56 PM';1243 Karan = '|| Bava upto 09:00 AM';1244 Var = '|| Somawara';1245 break;1246case '23-03-2021':1247 sunr = '|| 06:22 AM';1248 suns = '|| 06:34 PM';1249 moonr = '|| 12:57 PM';1250 moons = '|| 03:22 AM, Mar 24';1251 tithi = '|| Navami upto 10:07 AM';1252 naksh = '|| Punarvasu upto 10:46 PM';1253 yog = '|| Shobhana upto 12:39 PM';1254 Karan = '|| Kaulava upto 10:07 AM';1255 Var = '|| Mangalawara';1256 break;1257case '24-03-2021':1258 sunr = '|| 06:20 AM';1259 suns = '|| 06:35 PM';1260 moonr = '|| 01:57 PM';1261 moons = '|| 04:08 AM, Mar 25';1262 tithi = '|| Dashami upto 10:23 AM';1263 naksh = '|| Pushya upto 11:12 PM';1264 yog = '|| Atiganda upto 11:42 AM';1265 Karan = '|| Garaja upto 10:23 AM';1266 Var = '|| Budhawara';1267 break;1268case '25-03-2021':1269 sunr = '|| 06:19 AM';1270 suns = '|| 06:35 PM';1271 moonr = '|| 02:59 PM';1272 moons = '|| 04:51 AM, Mar 26';1273 tithi = '|| Ekadashi upto 09:47 AM';1274 naksh = '|| Ashlesha upto 10:49 PM';1275 yog = '|| Sukarman upto 10:04 AM';1276 Karan = '|| Vishti upto 09:47 AM';1277 Var = '|| Guruwara';1278 break;1279case '26-03-2021':1280 sunr = '|| 06:18 AM';1281 suns = '|| 06:36 PM';1282 moonr = '|| 04:04 PM';1283 moons = '|| 05:30 AM, Mar 27';1284 tithi = '|| Dwadashi upto 08:21 AM';1285 naksh = '|| Trayodashi upto 06:11 AM, Mar 27';1286 yog = '|| Magha upto 09:40 PM';1287 Karan = '|| Dhriti upto 07:46 AM';1288 Var = '|| Shukrawara';1289 break;1290case '27-03-2021':1291 sunr = '|| 06:17 AM';1292 suns = '|| 06:36 PM';1293 moonr = '|| 05:09 PM';1294 moons = '|| 06:08 AM, Mar 28';1295 tithi = '|| Chaturdashi upto 03:27 AM, Mar 28';1296 naksh = '|| Purva Phalguni upto 07:52 PM';1297 yog = '|| Ganda upto 01:32 AM, Mar 28';1298 Karan = '|| Garaja upto 04:53 PM';1299 Var = '|| Shaniwara';1300 break;1301case '28-03-2021':1302 sunr = '|| 06:16 AM';1303 suns = '|| 06:37 PM';1304 moonr = '|| 06:15 PM';1305 moons = '|| No Moonset';1306 tithi = '|| Purnima upto 12:17 AM, Mar 29';1307 naksh = '|| Uttara Phalguni upto 05:36 PM';1308 yog = '|| Vriddhi upto 09:50 PM';1309 Karan = '|| Vishti upto 01:54 PM';1310 Var = '|| Raviwara';1311 break;1312case '29-03-2021':1313 sunr = '|| 06:15 AM';1314 suns = '|| 06:37 PM';1315 moonr = '|| 07:22 PM';1316 moons = '|| 06:45 AM';1317 tithi = '|| Pratipada upto 08:54 PM';1318 naksh = '|| Hasta upto 03:02 PM';1319 yog = '|| Dhruva upto 05:54 PM';1320 Karan = '|| Balava upto 10:37 AM';1321 Var = '|| Somawara';1322 break;1323case '30-03-2021':1324 sunr = '|| 06:13 AM';1325 suns = '|| 06:38 PM';1326 moonr = '|| 08:30 PM';1327 moons = '|| 07:22 AM';1328 tithi = '|| Dwitiya upto 05:27 PM';1329 naksh = '|| Chitra upto 12:22 PM';1330 yog = '|| Vyaghata upto 01:55 PM';1331 Karan = '|| Taitila upto 07:10 AM';1332 Var = '|| Mangalawara';1333 break;1334case '31-03-2021':1335 sunr = '|| 06:12 AM';1336 suns = '|| 06:38 PM';1337 moonr = '|| 09:39 PM';1338 moons = '|| 08:02 AM';1339 tithi = '|| Tritiya upto 02:06 PM';1340 naksh = '|| Swati upto 09:45 AM';1341 yog = '|| Harshana upto 09:59 AM';1342 Karan = '|| Vishti upto 02:06 PM';1343 Var = '|| Budhawara';1344 break;1345case '01-04-2021':1346 sunr = '|| 06:11 AM';1347 suns = '|| 06:39 PM';1348 moonr = '|| 10:49 PM';1349 moons = '|| 08:46 AM';1350 tithi = '|| Chaturthi upto 10:59 AM';1351 naksh = '|| Vishakha upto 07:22 AM';1352 yog = '|| Anuradha upto 05:19 AM, Apr 02';1353 Karan = '|| Vajra upto 06:14 AM';1354 Var = '|| Guruwara';1355 break;1356case '02-04-2021':1357 sunr = '|| 06:10 AM';1358 suns = '|| 06:40 PM';1359 moonr = '|| 11:57 PM';1360 moons = '|| 09:34 AM';1361 tithi = '|| Panchami upto 08:15 AM';1362 naksh = '|| Shashthi upto 05:58 AM, Apr 03';1363 yog = '|| Jyeshtha upto 03:44 AM, Apr 03';1364 Karan = '|| Vyatipata upto 11:40 PM';1365 Var = '|| Shukrawara';1366 break;1367case '03-04-2021':1368 sunr = '|| 06:09 AM';1369 suns = '|| 06:40 PM';1370 moonr = '|| 01:01 AM, Apr 04';1371 moons = '|| 10:27 AM';1372 tithi = '|| Saptami upto 04:12 AM, Apr 04';1373 naksh = '|| Mula upto 02:39 AM, Apr 04';1374 yog = '|| Varigha upto 08:59 PM';1375 Karan = '|| Vishti upto 05:01 PM';1376 Var = '|| Shaniwara';1377 break;1378case '04-04-2021':1379 sunr = '|| 06:08 AM';1380 suns = '|| 06:41 PM';1381 moonr = '|| 01:58 AM, Apr 05';1382 moons = '|| 11:25 AM';1383 tithi = '|| Ashtami upto 02:59 AM, Apr 05';1384 naksh = '|| Purva Ashadha upto 02:06 AM, Apr 05';1385 yog = '|| Parigha upto 06:43 PM';1386 Karan = '|| Balava upto 03:32 PM';1387 Var = '|| Raviwara';1388 break;1389case '05-04-2021':1390 sunr = '|| 06:07 AM';1391 suns = '|| 06:41 PM';1392 moonr = '|| 02:49 AM, Apr 06';1393 moons = '|| 12:26 PM';1394 tithi = '|| Navami upto 02:18 AM, Apr 06';1395 naksh = '|| Uttara Ashadha upto 02:05 AM, Apr 06';1396 yog = '|| Shiva upto 04:54 PM';1397 Karan = '|| Taitila upto 02:35 PM';1398 Var = '|| Somawara';1399 break;1400case '06-04-2021':1401 sunr = '|| 06:05 AM';1402 suns = '|| 06:42 PM';1403 moonr = '|| 03:33 AM, Apr 07';1404 moons = '|| 01:28 PM';1405 tithi = '|| Dashami upto 02:09 AM, Apr 07';1406 naksh = '|| Shravana upto 02:35 AM, Apr 07';1407 yog = '|| Siddha upto 03:30 PM';1408 Karan = '|| Vanija upto 02:10 PM';1409 Var = '|| Mangalawara';1410 break;1411case '07-04-2021':1412 sunr = '|| 06:04 AM';1413 suns = '|| 06:42 PM';1414 moonr = '|| 04:11 AM, Apr 08';1415 moons = '|| 02:28 PM';1416 tithi = '|| Ekadashi upto 02:28 AM, Apr 08';1417 naksh = '|| Dhanishtha upto 03:33 AM, Apr 08';1418 yog = '|| Sadhya upto 02:30 PM';1419 Karan = '|| Bava upto 02:15 PM';1420 Var = '|| Budhawara';1421 break;1422case '08-04-2021':1423 sunr = '|| 06:03 AM';1424 suns = '|| 06:43 PM';1425 moonr = '|| 04:45 AM, Apr 09';1426 moons = '|| 03:26 PM';1427 tithi = '|| Dwadashi upto 03:15 AM, Apr 09';1428 naksh = '|| Shatabhisha upto 04:58 AM, Apr 09';1429 yog = '|| Shubha upto 01:52 PM';1430 Karan = '|| Kaulava upto 02:48 PM';1431 Var = '|| Guruwara';1432 break;1433case '09-04-2021':1434 sunr = '|| 06:02 AM';1435 suns = '|| 06:43 PM';1436 moonr = '|| 05:16 AM, Apr 10';1437 moons = '|| 04:22 PM';1438 tithi = '|| Trayodashi upto 04:27 AM, Apr 10';1439 naksh = '|| Purva Bhadrapada upto Full Night';1440 yog = '|| Shukla upto 01:34 PM';1441 Karan = '|| Garaja upto 03:48 PM';1442 Var = '|| Shukrawara';1443 break;1444case '10-04-2021':1445 sunr = '|| 06:01 AM';1446 suns = '|| 06:44 PM';1447 moonr = '|| 05:45 AM, Apr 11';1448 moons = '|| 05:16 PM';1449 tithi = '|| Chaturdashi upto Full Night';1450 naksh = '|| Purva Bhadrapada upto 06:46 AM';1451 yog = '|| Brahma upto 01:35 PM';1452 Karan = '|| Vishti upto 05:12 PM';1453 Var = '|| Shaniwara';1454 break;1455case '11-04-2021':1456 sunr = '|| 06:00 AM';1457 suns = '|| 06:45 PM';1458 moonr = '|| No Moonrise';1459 moons = '|| 06:10 PM';1460 tithi = '|| Chaturdashi upto 06:03 AM';1461 naksh = '|| Uttara Bhadrapada upto 08:58 AM';1462 yog = '|| Indra upto 01:53 PM';1463 Karan = '|| Shakuni upto 06:03 AM';1464 Var = '|| Raviwara';1465 break;1466case '12-04-2021':1467 sunr = '|| 05:59 AM';1468 suns = '|| 06:45 PM';1469 moonr = '|| 06:14 AM';1470 moons = '|| 07:02 PM';1471 tithi = '|| Amavasya upto 08:00 AM';1472 naksh = '|| Revati upto 11:30 AM';1473 yog = '|| Vaidhriti upto 02:28 PM';1474 Karan = '|| Nagava upto 08:00 AM';1475 Var = '|| Somawara';1476 break;1477case '13-04-2021':1478 sunr = '|| 05:58 AM';1479 suns = '|| 06:46 PM';1480 moonr = '|| 06:44 AM';1481 moons = '|| 07:55 PM';1482 tithi = '|| Pratipada upto 10:16 AM';1483 naksh = '|| Ashwini upto 02:20 PM';1484 yog = '|| Vishkambha upto 03:17 PM';1485 Karan = '|| Bava upto 10:16 AM';1486 Var = '|| Mangalawara';1487 break;1488case '14-04-2021':1489 sunr = '|| 05:57 AM';1490 suns = '|| 06:46 PM';1491 moonr = '|| 07:15 AM';1492 moons = '|| 08:49 PM';1493 tithi = '|| Dwitiya upto 12:47 PM';1494 naksh = '|| Bharani upto 05:23 PM';1495 yog = '|| Priti upto 04:16 PM';1496 Karan = '|| Kaulava upto 12:47 PM';1497 Var = '|| Budhawara';1498 break;1499case '15-04-2021':1500 sunr = '|| 05:56 AM';1501 suns = '|| 06:47 PM';1502 moonr = '|| 07:49 AM';1503 moons = '|| 09:44 PM';1504 tithi = '|| Tritiya upto 03:27 PM';1505 naksh = '|| Krittika upto 08:33 PM';1506 yog = '|| Ayushman upto 05:20 PM';1507 Karan = '|| Garaja upto 03:27 PM';1508 Var = '|| Guruwara';1509 break;1510case '16-04-2021':1511 sunr = '|| 05:55 AM';1512 suns = '|| 06:47 PM';1513 moonr = '|| 08:26 AM';1514 moons = '|| 10:38 PM';1515 tithi = '|| Chaturthi upto 06:05 PM';1516 naksh = '|| Rohini upto 11:40 PM';1517 yog = '|| Saubhagya upto 06:24 PM';1518 Karan = '|| Vishti upto 06:05 PM';1519 Var = '|| Shukrawara';1520 break;1521case '17-04-2021':1522 sunr = '|| 05:54 AM';1523 suns = '|| 06:48 PM';1524 moonr = '|| 09:08 AM';1525 moons = '|| 11:33 PM';1526 tithi = '|| Panchami upto 08:32 PM';1527 naksh = '|| Mrigashirsha upto 02:34 AM, Apr 18';1528 yog = '|| Shobhana upto 07:19 PM';1529 Karan = '|| Bava upto 07:21 AM';1530 Var = '|| Shaniwara';1531 break;1532case '18-04-2021':1533 sunr = '|| 05:53 AM';1534 suns = '|| 06:49 PM';1535 moonr = '|| 09:55 AM';1536 moons = '|| 12:26 AM, Apr 19';1537 tithi = '|| Shashthi upto 10:34 PM';1538 naksh = '|| Ardra upto 05:02 AM, Apr 19';1539 yog = '|| Atiganda upto 07:56 PM';1540 Karan = '|| Kaulava upto 09:37 AM';1541 Var = '|| Raviwara';1542 break;1543case '19-04-2021':1544 sunr = '|| 05:52 AM';1545 suns = '|| 06:49 PM';1546 moonr = '|| 10:47 AM';1547 moons = '|| 01:15 AM, Apr 20';1548 tithi = '|| Saptami upto 12:01 AM, Apr 20';1549 naksh = '|| Punarvasu upto Full Night';1550 yog = '|| Sukarman upto 08:07 PM';1551 Karan = '|| Garaja upto 11:23 AM';1552 Var = '|| Somawara';1553 break;1554case '20-04-2021':1555 sunr = '|| 05:51 AM';1556 suns = '|| 06:50 PM';1557 moonr = '|| 11:43 AM';1558 moons = '|| 02:02 AM, Apr 21';1559 tithi = '|| Ashtami upto 12:43 AM, Apr 21';1560 naksh = '|| Punarvasu upto 06:53 AM';1561 yog = '|| Dhriti upto 07:44 PM';1562 Karan = '|| Vishti upto 12:28 PM';1563 Var = '|| Mangalawara';1564 break;1565case '21-04-2021':1566 sunr = '|| 05:50 AM';1567 suns = '|| 06:50 PM';1568 moonr = '|| 12:43 PM';1569 moons = '|| 02:44 AM, Apr 22';1570 tithi = '|| Navami upto 12:35 AM, Apr 22';1571 naksh = '|| Pushya upto 07:59 AM';1572 yog = '|| Shula upto 06:43 PM';1573 Karan = '|| Balava upto 12:45 PM';1574 Var = '|| Budhawara';1575 break;1576case '22-04-2021':1577 sunr = '|| 05:49 AM';1578 suns = '|| 06:51 PM';1579 moonr = '|| 01:45 PM';1580 moons = '|| 03:24 AM, Apr 23';1581 tithi = '|| Dashami upto 11:35 PM';1582 naksh = '|| Ashlesha upto 08:15 AM';1583 yog = '|| Ganda upto 05:02 PM';1584 Karan = '|| Taitila upto 12:11 PM';1585 Var = '|| Guruwara';1586 break;1587case '23-04-2021':1588 sunr = '|| 05:48 AM';1589 suns = '|| 06:52 PM';1590 moonr = '|| 02:48 PM';1591 moons = '|| 04:01 AM, Apr 24';1592 tithi = '|| Ekadashi upto 09:47 PM';1593 naksh = '|| Magha upto 07:42 AM';1594 yog = '|| Vriddhi upto 02:40 PM';1595 Karan = '|| Vanija upto 10:47 AM';1596 Var = '|| Shukrawara';1597 break;1598case '24-04-2021':1599 sunr = '|| 05:47 AM';1600 suns = '|| 06:52 PM';1601 moonr = '|| 03:53 PM';1602 moons = '|| 04:38 AM, Apr 25';1603 tithi = '|| Dwadashi upto 07:17 PM';1604 naksh = '|| Purva Phalguni upto 06:22 AM';1605 yog = '|| Uttara Phalguni upto 04:24 AM, Apr 25';1606 Karan = '|| Dhruva upto 11:43 AM';1607 Var = '|| Shaniwara';1608 break;1609case '25-04-2021':1610 sunr = '|| 05:46 AM';1611 suns = '|| 06:53 PM';1612 moonr = '|| 04:58 PM';1613 moons = '|| 05:14 AM, Apr 26';1614 tithi = '|| Trayodashi upto 04:12 PM';1615 naksh = '|| Hasta upto 01:55 AM, Apr 26';1616 yog = '|| Vyaghata upto 08:15 AM';1617 Karan = '|| Harshana upto 04:23 AM, Apr 26';1618 Var = '|| Raviwara';1619 break;1620case '26-04-2021':1621 sunr = '|| 05:45 AM';1622 suns = '|| 06:53 PM';1623 moonr = '|| 06:06 PM';1624 moons = '|| No Moonset';1625 tithi = '|| Chaturdashi upto 12:44 PM';1626 naksh = '|| Chitra upto 11:06 PM';1627 yog = '|| Vajra upto 12:17 AM, Apr 27';1628 Karan = '|| Vanija upto 12:44 PM';1629 Var = '|| Somawara';1630 break;1631case '27-04-2021':1632 sunr = '|| 05:44 AM';1633 suns = '|| 06:54 PM';1634 moonr = '|| 07:16 PM';1635 moons = '|| 05:53 AM';1636 tithi = '|| Purnima upto 09:01 AM';1637 naksh = '|| Pratipada upto 05:14 AM, Apr 28';1638 yog = '|| Swati upto 08:08 PM';1639 Karan = '|| Siddhi upto 08:03 PM';1640 Var = '|| Mangalawara';1641 break;1642case '28-04-2021':1643 sunr = '|| 05:43 AM';1644 suns = '|| 06:55 PM';1645 moonr = '|| 08:28 PM';1646 moons = '|| 06:35 AM';1647 tithi = '|| Dwitiya upto 01:34 AM, Apr 29';1648 naksh = '|| Vishakha upto 05:13 PM';1649 yog = '|| Vyatipata upto 03:51 PM';1650 Karan = '|| Taitila upto 03:22 PM';1651 Var = '|| Budhawara';1652 break;1653case '29-04-2021':1654 sunr = '|| 05:42 AM';1655 suns = '|| 06:55 PM';1656 moonr = '|| 09:39 PM';1657 moons = '|| 07:22 AM';1658 tithi = '|| Tritiya upto 10:09 PM';1659 naksh = '|| Anuradha upto 02:29 PM';1660 yog = '|| Varigha upto 11:49 AM';1661 Karan = '|| Vanija upto 11:49 AM';1662 Var = '|| Guruwara';1663 break;1664case '30-04-2021':1665 sunr = '|| 05:41 AM';1666 suns = '|| 06:56 PM';1667 moonr = '|| 10:48 PM';1668 moons = '|| 08:15 AM';1669 tithi = '|| Chaturthi upto 07:09 PM';1670 naksh = '|| Jyeshtha upto 12:08 PM';1671 yog = '|| Parigha upto 08:04 AM';1672 Karan = '|| Shiva upto 04:42 AM, May 01';1673 Var = '|| Shukrawara';1674 break;1675case '01-05-2021':1676 sunr = '|| 05:40 AM';1677 suns = '|| 06:56 PM';1678 moonr = '|| 11:51 PM';1679 moons = '|| 09:14 AM';1680 tithi = '|| Panchami upto 04:41 PM';1681 naksh = '|| Mula upto 10:16 AM';1682 yog = '|| Siddha upto 01:48 AM, May 02';1683 Karan = '|| Kaulava upto 05:51 AM';1684 Var = '|| Shaniwara';1685 break;1686case '02-05-2021':1687 sunr = '|| 05:40 AM';1688 suns = '|| 06:57 PM';1689 moonr = '|| 12:46 AM, May 03';1690 moons = '|| 10:16 AM';1691 tithi = '|| Shashthi upto 02:50 PM';1692 naksh = '|| Purva Ashadha upto 08:59 AM';1693 yog = '|| Sadhya upto 11:26 PM';1694 Karan = '|| Vanija upto 02:50 PM';1695 Var = '|| Raviwara';1696 break;1697case '03-05-2021':1698 sunr = '|| 05:39 AM';1699 suns = '|| 06:58 PM';1700 moonr = '|| 01:33 AM, May 04';1701 moons = '|| 11:19 AM';1702 tithi = '|| Saptami upto 01:39 PM';1703 naksh = '|| Uttara Ashadha upto 08:22 AM';1704 yog = '|| Shubha upto 09:37 PM';1705 Karan = '|| Bava upto 01:39 PM';1706 Var = '|| Somawara';1707 break;1708case '04-05-2021':1709 sunr = '|| 05:38 AM';1710 suns = '|| 06:58 PM';1711 moonr = '|| 02:13 AM, May 05';1712 moons = '|| 12:21 PM';1713 tithi = '|| Ashtami upto 01:10 PM';1714 naksh = '|| Shravana upto 08:26 AM';1715 yog = '|| Shukla upto 08:22 PM';1716 Karan = '|| Kaulava upto 01:10 PM';1717 Var = '|| Mangalawara';1718 break;1719case '05-05-2021':1720 sunr = '|| 05:37 AM';1721 suns = '|| 06:59 PM';1722 moonr = '|| 02:48 AM, May 06';1723 moons = '|| 01:21 PM';1724 tithi = '|| Navami upto 01:21 PM';1725 naksh = '|| Dhanishtha upto 09:11 AM';1726 yog = '|| Brahma upto 07:38 PM';1727 Karan = '|| Garaja upto 01:21 PM';1728 Var = '|| Budhawara';1729 break;1730case '06-05-2021':1731 sunr = '|| 05:36 AM';1732 suns = '|| 06:59 PM';1733 moonr = '|| 03:20 AM, May 07';1734 moons = '|| 02:18 PM';1735 tithi = '|| Dashami upto 02:10 PM';1736 naksh = '|| Shatabhisha upto 10:32 AM';1737 yog = '|| Indra upto 07:22 PM';1738 Karan = '|| Vishti upto 02:10 PM';1739 Var = '|| Guruwara';1740 break;1741case '07-05-2021':1742 sunr = '|| 05:36 AM';1743 suns = '|| 07:00 PM';1744 moonr = '|| 03:49 AM, May 08';1745 moons = '|| 03:12 PM';1746 tithi = '|| Ekadashi upto 03:32 PM';1747 naksh = '|| Purva Bhadrapada upto 12:26 PM';1748 yog = '|| Vaidhriti upto 07:31 PM';1749 Karan = '|| Balava upto 03:32 PM';1750 Var = '|| Shukrawara';1751 break;1752case '08-05-2021':1753 sunr = '|| 05:35 AM';1754 suns = '|| 07:01 PM';1755 moonr = '|| 04:18 AM, May 09';1756 moons = '|| 04:05 PM';1757 tithi = '|| Dwadashi upto 05:20 PM';1758 naksh = '|| Uttara Bhadrapada upto 02:47 PM';1759 yog = '|| Vishkambha upto 08:00 PM';1760 Karan = '|| Taitila upto 05:20 PM';1761 Var = '|| Shaniwara';1762 break;1763case '09-05-2021':1764 sunr = '|| 05:34 AM';1765 suns = '|| 07:01 PM';1766 moonr = '|| 04:47 AM, May 10';1767 moons = '|| 04:58 PM';1768 tithi = '|| Trayodashi upto 07:30 PM';1769 naksh = '|| Revati upto 05:29 PM';1770 yog = '|| Priti upto 08:44 PM';1771 Karan = '|| Garaja upto 06:23 AM';1772 Var = '|| Raviwara';1773 break;1774case '10-05-2021':1775 sunr = '|| 05:34 AM';1776 suns = '|| 07:02 PM';1777 moonr = '|| 05:17 AM, May 11';1778 moons = '|| 05:50 PM';1779 tithi = '|| Chaturdashi upto 09:55 PM';1780 naksh = '|| Ashwini upto 08:26 PM';1781 yog = '|| Ayushman upto 09:40 PM';1782 Karan = '|| Vishti upto 08:41 AM';1783 Var = '|| Somawara';1784 break;1785case '11-05-2021':1786 sunr = '|| 05:33 AM';1787 suns = '|| 07:02 PM';1788 moonr = '|| No Moonrise';1789 moons = '|| 06:44 PM';1790 tithi = '|| Amavasya upto 12:29 AM, May 12';1791 naksh = '|| Bharani upto 11:31 PM';1792 yog = '|| Saubhagya upto 10:43 PM';1793 Karan = '|| Chatushpada upto 11:11 AM';1794 Var = '|| Mangalawara';1795 break;1796case '12-05-2021':1797 sunr = '|| 05:32 AM';1798 suns = '|| 07:03 PM';1799 moonr = '|| 05:50 AM';1800 moons = '|| 07:38 PM';1801 tithi = '|| Pratipada upto 03:05 AM, May 13';1802 naksh = '|| Krittika upto 02:40 AM, May 13';1803 yog = '|| Shobhana upto 11:48 PM';1804 Karan = '|| Kinstughna upto 01:47 PM';1805 Var = '|| Budhawara';1806 break;1807case '13-05-2021':1808 sunr = '|| 05:32 AM';1809 suns = '|| 07:04 PM';1810 moonr = '|| 06:26 AM';1811 moons = '|| 08:33 PM';1812 tithi = '|| Dwitiya upto Full Night';1813 naksh = '|| Rohini upto Full Night';1814 yog = '|| Atiganda upto 12:51 AM, May 14';1815 Karan = '|| Balava upto 04:23 PM';1816 Var = '|| Guruwara';1817 break;1818case '14-05-2021':1819 sunr = '|| 05:31 AM';1820 suns = '|| 07:04 PM';1821 moonr = '|| 07:06 AM';1822 moons = '|| 09:28 PM';1823 tithi = '|| Dwitiya upto 05:38 AM';1824 naksh = '|| Rohini upto 05:45 AM';1825 yog = '|| Sukarman upto 01:47 AM, May 15';1826 Karan = '|| Kaulava upto 05:38 AM';1827 Var = '|| Shukrawara';1828 break;1829case '15-05-2021':1830 sunr = '|| 05:30 AM';1831 suns = '|| 07:05 PM';1832 moonr = '|| 07:51 AM';1833 moons = '|| 10:21 PM';1834 tithi = '|| Tritiya upto 07:59 AM';1835 naksh = '|| Mrigashirsha upto 08:39 AM';1836 yog = '|| Dhriti upto 02:29 AM, May 16';1837 Karan = '|| Garaja upto 07:59 AM';1838 Var = '|| Shaniwara';1839 break;1840case '16-05-2021':1841 sunr = '|| 05:30 AM';1842 suns = '|| 07:06 PM';1843 moonr = '|| 08:41 AM';1844 moons = '|| 11:12 PM';1845 tithi = '|| Chaturthi upto 10:00 AM';1846 naksh = '|| Ardra upto 11:14 AM';1847 yog = '|| Shula upto 02:52 AM, May 17';1848 Karan = '|| Vishti upto 10:00 AM';1849 Var = '|| Raviwara';1850 break;1851case '17-05-2021':1852 sunr = '|| 05:29 AM';1853 suns = '|| 07:06 PM';1854 moonr = '|| 09:36 AM';1855 moons = '|| 11:59 PM';1856 tithi = '|| Panchami upto 11:34 AM';1857 naksh = '|| Punarvasu upto 01:22 PM';1858 yog = '|| Ganda upto 02:50 AM, May 18';1859 Karan = '|| Balava upto 11:34 AM';1860 Var = '|| Somawara';1861 break;1862case '18-05-2021':1863 sunr = '|| 05:29 AM';1864 suns = '|| 07:07 PM';1865 moonr = '|| 10:33 AM';1866 moons = '|| 12:42 AM, May 19';1867 tithi = '|| Shashthi upto 12:32 PM';1868 naksh = '|| Pushya upto 02:55 PM';1869 yog = '|| Vriddhi upto 02:17 AM, May 19';1870 Karan = '|| Taitila upto 12:32 PM';1871 Var = '|| Mangalawara';1872 break;1873case '19-05-2021':1874 sunr = '|| 05:28 AM';1875 suns = '|| 07:07 PM';1876 moonr = '|| 11:33 AM';1877 moons = '|| 01:21 AM, May 20';1878 tithi = '|| Saptami upto 12:50 PM';1879 naksh = '|| Ashlesha upto 03:48 PM';1880 yog = '|| Dhruva upto 01:10 AM, May 20';1881 Karan = '|| Vanija upto 12:50 PM';1882 Var = '|| Budhawara';1883 break;1884case '20-05-2021':1885 sunr = '|| 05:28 AM';1886 suns = '|| 07:08 PM';1887 moonr = '|| 12:34 PM';1888 moons = '|| 01:58 AM, May 21';1889 tithi = '|| Ashtami upto 12:23 PM';1890 naksh = '|| Magha upto 03:58 PM';1891 yog = '|| Vyaghata upto 11:28 PM';1892 Karan = '|| Bava upto 12:23 PM';1893 Var = '|| Guruwara';1894 break;1895case '21-05-2021':1896 sunr = '|| 05:27 AM';1897 suns = '|| 07:09 PM';1898 moonr = '|| 01:36 PM';1899 moons = '|| 02:33 AM, May 22';1900 tithi = '|| Navami upto 11:10 AM';1901 naksh = '|| Purva Phalguni upto 03:23 PM';1902 yog = '|| Harshana upto 09:10 PM';1903 Karan = '|| Kaulava upto 11:10 AM';1904 Var = '|| Shukrawara';1905 break;1906case '22-05-2021':1907 sunr = '|| 05:27 AM';1908 suns = '|| 07:09 PM';1909 moonr = '|| 02:39 PM';1910 moons = '|| 03:08 AM, May 23';1911 tithi = '|| Dashami upto 09:15 AM';1912 naksh = '|| Uttara Phalguni upto 02:06 PM';1913 yog = '|| Vajra upto 06:18 PM';1914 Karan = '|| Garaja upto 09:15 AM';1915 Var = '|| Shaniwara';1916 break;1917case '23-05-2021':1918 sunr = '|| 05:26 AM';1919 suns = '|| 07:10 PM';1920 moonr = '|| 03:43 PM';1921 moons = '|| 03:44 AM, May 24';1922 tithi = '|| Ekadashi upto 06:42 AM';1923 naksh = '|| Dwadashi upto 03:38 AM, May 24';1924 yog = '|| Hasta upto 12:12 PM';1925 Karan = '|| Siddhi upto 02:58 PM';1926 Var = '|| Raviwara';1927 break;1928case '24-05-2021':1929 sunr = '|| 05:26 AM';1930 suns = '|| 07:10 PM';1931 moonr = '|| 04:51 PM';1932 moons = '|| 04:24 AM, May 25';1933 tithi = '|| Trayodashi upto 12:11 AM, May 25';1934 naksh = '|| Chitra upto 09:49 AM';1935 yog = '|| Vyatipata upto 11:14 AM';1936 Karan = '|| Kaulava upto 01:57 PM';1937 Var = '|| Somawara';1938 break;1939case '25-05-2021':1940 sunr = '|| 05:26 AM';1941 suns = '|| 07:11 PM';1942 moonr = '|| 06:01 PM';1943 moons = '|| 05:08 AM, May 26';1944 tithi = '|| Chaturdashi upto 08:29 PM';1945 naksh = '|| Swati upto 07:06 AM';1946 yog = '|| Vishakha upto 04:11 AM, May 26';1947 Karan = '|| Varigha upto 07:13 AM';1948 Var = '|| Mangalawara';1949 break;1950case '26-05-2021':1951 sunr = '|| 05:25 AM';1952 suns = '|| 07:11 PM';1953 moonr = '|| 07:13 PM';1954 moons = '|| No Moonset';1955 tithi = '|| Purnima upto 04:43 PM';1956 naksh = '|| Anuradha upto 01:16 AM, May 27';1957 yog = '|| Shiva upto 10:52 PM';1958 Karan = '|| Vishti upto 06:36 AM';1959 Var = '|| Budhawara';1960 break;1961case '27-05-2021':1962 sunr = '|| 05:25 AM';1963 suns = '|| 07:12 PM';1964 moonr = '|| 08:26 PM';1965 moons = '|| 05:59 AM';1966 tithi = '|| Pratipada upto 01:02 PM';1967 naksh = '|| Jyeshtha upto 10:29 PM';1968 yog = '|| Siddha upto 06:48 PM';1969 Karan = '|| Kaulava upto 01:02 PM';1970 Var = '|| Guruwara';1971 break;1972case '28-05-2021':1973 sunr = '|| 05:25 AM';1974 suns = '|| 07:12 PM';1975 moonr = '|| 09:34 PM';1976 moons = '|| 06:56 AM';1977 tithi = '|| Dwitiya upto 09:36 AM';1978 naksh = '|| Mula upto 08:02 PM';1979 yog = '|| Sadhya upto 02:58 PM';1980 Karan = '|| Garaja upto 09:36 AM';1981 Var = '|| Shukrawara';1982 break;1983case '29-05-2021':1984 sunr = '|| 05:24 AM';1985 suns = '|| 07:13 PM';1986 moonr = '|| 10:34 PM';1987 moons = '|| 07:59 AM';1988 tithi = '|| Tritiya upto 06:33 AM';1989 naksh = '|| Chaturthi upto 04:03 AM, May 30';1990 yog = '|| Purva Ashadha upto 06:04 PM';1991 Karan = '|| Shubha upto 11:30 AM';1992 Var = '|| Shaniwara';1993 break;1994case '30-05-2021':1995 sunr = '|| 05:24 AM';1996 suns = '|| 07:14 PM';1997 moonr = '|| 11:27 PM';1998 moons = '|| 09:04 AM';1999 tithi = '|| Panchami upto 02:12 AM, May 31';2000 naksh = '|| Uttara Ashadha upto 04:42 PM';2001 yog = '|| Shukla upto 08:31 AM';2002 Karan = '|| Kaulava upto 03:02 PM';2003 Var = '|| Raviwara';2004 break;2005case '31-05-2021':2006 sunr = '|| 05:24 AM';2007 suns = '|| 07:14 PM';2008 moonr = '|| 12:11 AM, Jun 01';2009 moons = '|| 10:09 AM';2010 tithi = '|| Shashthi upto 01:05 AM, Jun 01';2011 naksh = '|| Shravana upto 04:02 PM';2012 yog = '|| Brahma upto 06:04 AM';2013 Karan = '|| Indra upto 04:14 AM, Jun 01';2014 Var = '|| Somawara';2015 break;2016case '01-06-2021':2017 sunr = '|| 05:24 AM';2018 suns = '|| 07:15 PM';2019 moonr = '|| 12:49 AM, Jun 02';2020 moons = '|| 11:12 AM';2021 tithi = '|| Saptami upto 12:46 AM, Jun 02';2022 naksh = '|| Dhanishtha upto 04:08 PM';2023 yog = '|| Vaidhriti upto 03:02 AM, Jun 02';2024 Karan = '|| Vishti upto 12:49 PM';2025 Var = '|| Mangalawara';2026 break;2027case '02-06-2021':2028 sunr = '|| 05:23 AM';2029 suns = '|| 07:15 PM';2030 moonr = '|| 01:22 AM, Jun 03';2031 moons = '|| 12:11 PM';2032 tithi = '|| Ashtami upto 01:12 AM, Jun 03';2033 naksh = '|| Shatabhisha upto 05:00 PM';2034 yog = '|| Vishkambha upto 02:27 AM, Jun 03';2035 Karan = '|| Balava upto 12:53 PM';2036 Var = '|| Budhawara';2037 break;2038case '03-06-2021':2039 sunr = '|| 05:23 AM';2040 suns = '|| 07:16 PM';2041 moonr = '|| 01:52 AM, Jun 04';2042 moons = '|| 01:07 PM';2043 tithi = '|| Navami upto 02:22 AM, Jun 04';2044 naksh = '|| Purva Bhadrapada upto 06:35 PM';2045 yog = '|| Priti upto 02:24 AM, Jun 04';2046 Karan = '|| Taitila upto 01:42 PM';2047 Var = '|| Guruwara';2048 break;2049case '04-06-2021':2050 sunr = '|| 05:23 AM';2051 suns = '|| 07:16 PM';2052 moonr = '|| 02:21 AM, Jun 05';2053 moons = '|| 02:01 PM';2054 tithi = '|| Dashami upto 04:07 AM, Jun 05';2055 naksh = '|| Uttara Bhadrapada upto 08:47 PM';2056 yog = '|| Ayushman upto 02:50 AM, Jun 05';2057 Karan = '|| Vanija upto 03:10 PM';2058 Var = '|| Shukrawara';2059 break;2060case '05-06-2021':2061 sunr = '|| 05:23 AM';2062 suns = '|| 07:17 PM';2063 moonr = '|| 02:50 AM, Jun 06';2064 moons = '|| 02:53 PM';2065 tithi = '|| Ekadashi upto Full Night';2066 naksh = '|| Revati upto 11:28 PM';2067 yog = '|| Saubhagya upto 03:36 AM, Jun 06';2068 Karan = '|| Bava upto 05:10 PM';2069 Var = '|| Shaniwara';2070 break;2071case '06-06-2021':2072 sunr = '|| 05:23 AM';2073 suns = '|| 07:17 PM';2074 moonr = '|| 03:20 AM, Jun 07';2075 moons = '|| 03:46 PM';2076 tithi = '|| Ekadashi upto 06:19 AM';2077 naksh = '|| Ashwini upto 02:28 AM, Jun 07';2078 yog = '|| Shobhana upto 04:36 AM, Jun 07';2079 Karan = '|| Balava upto 06:19 AM';2080 Var = '|| Raviwara';2081 break;2082case '07-06-2021':2083 sunr = '|| 05:23 AM';2084 suns = '|| 07:17 PM';2085 moonr = '|| 03:51 AM, Jun 08';2086 moons = '|| 04:39 PM';2087 tithi = '|| Dwadashi upto 08:48 AM';2088 naksh = '|| Bharani upto Full Night';2089 yog = '|| Atiganda upto Full Night';2090 Karan = '|| Taitila upto 08:48 AM';2091 Var = '|| Somawara';2092 break;2093case '08-06-2021':2094 sunr = '|| 05:23 AM';2095 suns = '|| 07:18 PM';2096 moonr = '|| 04:26 AM, Jun 09';2097 moons = '|| 05:33 PM';2098 tithi = '|| Trayodashi upto 11:24 AM';2099 naksh = '|| Bharani upto 05:36 AM';2100 yog = '|| Atiganda upto 05:42 AM';2101 Karan = '|| Vanija upto 11:24 AM';2102 Var = '|| Mangalawara';2103 break;2104case '09-06-2021':2105 sunr = '|| 05:23 AM';2106 suns = '|| 07:18 PM';2107 moonr = '|| 05:05 AM, Jun 10';2108 moons = '|| 06:28 PM';2109 tithi = '|| Chaturdashi upto 01:57 PM';2110 naksh = '|| Krittika upto 08:44 AM';2111 yog = '|| Sukarman upto 06:48 AM';2112 Karan = '|| Shakuni upto 01:57 PM';2113 Var = '|| Budhawara';2114 break;2115case '10-06-2021':2116 sunr = '|| 05:23 AM';2117 suns = '|| 07:19 PM';2118 moonr = '|| No Moonrise';2119 moons = '|| 07:23 PM';2120 tithi = '|| Amavasya upto 04:22 PM';2121 naksh = '|| Rohini upto 11:45 AM';2122 yog = '|| Dhriti upto 07:49 AM';2123 Karan = '|| Nagava upto 04:22 PM';2124 Var = '|| Guruwara';2125 break;2126case '11-06-2021':2127 sunr = '|| 05:23 AM';2128 suns = '|| 07:19 PM';2129 moonr = '|| 05:49 AM';2130 moons = '|| 08:17 PM';2131 tithi = '|| Pratipada upto 06:30 PM';2132 naksh = '|| Mrigashirsha upto 02:31 PM';2133 yog = '|| Shula upto 08:39 AM';2134 Karan = '|| Kinstughna upto 05:28 AM';2135 Var = '|| Shukrawara';2136 break;2137case '12-06-2021':2138 sunr = '|| 05:23 AM';2139 suns = '|| 07:19 PM';2140 moonr = '|| 06:38 AM';2141 moons = '|| 09:09 PM';2142 tithi = '|| Dwitiya upto 08:17 PM';2143 naksh = '|| Ardra upto 04:58 PM';2144 yog = '|| Ganda upto 09:14 AM';2145 Karan = '|| Balava upto 07:27 AM';2146 Var = '|| Shaniwara';2147 break;2148case '13-06-2021':2149 sunr = '|| 05:23 AM';2150 suns = '|| 07:20 PM';2151 moonr = '|| 07:31 AM';2152 moons = '|| 09:57 PM';2153 tithi = '|| Tritiya upto 09:40 PM';2154 naksh = '|| Punarvasu upto 07:01 PM';2155 yog = '|| Vriddhi upto 09:31 AM';2156 Karan = '|| Taitila upto 09:02 AM';2157 Var = '|| Raviwara';2158 break;2159case '14-06-2021':2160 sunr = '|| 05:23 AM';2161 suns = '|| 07:20 PM';2162 moonr = '|| 08:28 AM';2163 moons = '|| 10:41 PM';2164 tithi = '|| Chaturthi upto 10:34 PM';2165 naksh = '|| Pushya upto 08:37 PM';2166 yog = '|| Dhruva upto 09:28 AM';2167 Karan = '|| Vanija upto 10:10 AM';2168 Var = '|| Somawara';2169 break;2170case '15-06-2021':2171 sunr = '|| 05:23 AM';2172 suns = '|| 07:20 PM';2173 moonr = '|| 09:27 AM';2174 moons = '|| 11:21 PM';2175 tithi = '|| Panchami upto 10:56 PM';2176 naksh = '|| Ashlesha upto 09:42 PM';2177 yog = '|| Vyaghata upto 09:01 AM';2178 Karan = '|| Bava upto 10:49 AM';2179 Var = '|| Mangalawara';2180 break;2181case '16-06-2021':2182 sunr = '|| 05:23 AM';2183 suns = '|| 07:21 PM';2184 moonr = '|| 10:26 AM';2185 moons = '|| 11:58 PM';2186 tithi = '|| Shashthi upto 10:45 PM';2187 naksh = '|| Magha upto 10:15 PM';2188 yog = '|| Harshana upto 08:09 AM';2189 Karan = '|| Kaulava upto 10:55 AM';2190 Var = '|| Budhawara';2191 break;2192case '17-06-2021':2193 sunr = '|| 05:23 AM';2194 suns = '|| 07:21 PM';2195 moonr = '|| 11:26 AM';2196 moons = '|| 12:33 AM, Jun 18';2197 tithi = '|| Saptami upto 09:59 PM';2198 naksh = '|| Purva Phalguni upto 10:13 PM';2199 yog = '|| Vajra upto 06:50 AM';2200 Karan = '|| Siddhi upto 05:03 AM, Jun 18';2201 Var = '|| Guruwara';2202 break;2203case '18-06-2021':2204 sunr = '|| 05:23 AM';2205 suns = '|| 07:21 PM';2206 moonr = '|| 12:27 PM';2207 moons = '|| 01:06 AM, Jun 19';2208 tithi = '|| Ashtami upto 08:39 PM';2209 naksh = '|| Uttara Phalguni upto 09:38 PM';2210 yog = '|| Vyatipata upto 02:47 AM, Jun 19';2211 Karan = '|| Vishti upto 09:23 AM';2212 Var = '|| Shukrawara';2213 break;2214case '19-06-2021':2215 sunr = '|| 05:23 AM';2216 suns = '|| 07:22 PM';2217 moonr = '|| 01:29 PM';2218 moons = '|| 01:41 AM, Jun 20';2219 tithi = '|| Navami upto 06:45 PM';2220 naksh = '|| Hasta upto 08:29 PM';2221 yog = '|| Varigha upto 12:06 AM, Jun 20';2222 Karan = '|| Balava upto 07:46 AM';2223 Var = '|| Shaniwara';2224 break;2225case '20-06-2021':2226 sunr = '|| 05:24 AM';2227 suns = '|| 07:22 PM';2228 moonr = '|| 02:33 PM';2229 moons = '|| 02:17 AM, Jun 21';2230 tithi = '|| Dashami upto 04:21 PM';2231 naksh = '|| Chitra upto 06:50 PM';2232 yog = '|| Parigha upto 09:00 PM';2233 Karan = '|| Taitila upto 05:36 AM';2234 Var = '|| Raviwara';2235 break;2236case '21-06-2021':2237 sunr = '|| 05:24 AM';2238 suns = '|| 07:22 PM';2239 moonr = '|| 03:39 PM';2240 moons = '|| 02:58 AM, Jun 22';2241 tithi = '|| Ekadashi upto 01:31 PM';2242 naksh = '|| Swati upto 04:46 PM';2243 yog = '|| Shiva upto 05:34 PM';2244 Karan = '|| Vishti upto 01:31 PM';2245 Var = '|| Somawara';2246 break;2247case '22-06-2021':2248 sunr = '|| 05:24 AM';2249 suns = '|| 07:22 PM';2250 moonr = '|| 04:49 PM';2251 moons = '|| 03:44 AM, Jun 23';2252 tithi = '|| Dwadashi upto 10:22 AM';2253 naksh = '|| Vishakha upto 02:23 PM';2254 yog = '|| Siddha upto 01:52 PM';2255 Karan = '|| Balava upto 10:22 AM';2256 Var = '|| Mangalawara';2257 break;2258case '23-06-2021':2259 sunr = '|| 05:24 AM';2260 suns = '|| 07:22 PM';2261 moonr = '|| 06:00 PM';2262 moons = '|| 04:37 AM, Jun 24';2263 tithi = '|| Trayodashi upto 06:59 AM';2264 naksh = '|| Chaturdashi upto 03:32 AM, Jun 24';2265 yog = '|| Anuradha upto 11:48 AM';2266 Karan = '|| Sadhya upto 10:01 AM';2267 Var = '|| Budhawara';2268 break;2269case '24-06-2021':2270 sunr = '|| 05:25 AM';2271 suns = '|| 07:23 PM';2272 moonr = '|| 07:11 PM';2273 moons = '|| No Moonset';2274 tithi = '|| Purnima upto 12:09 AM, Jun 25';2275 naksh = '|| Jyeshtha upto 09:11 AM';2276 yog = '|| Shubha upto 06:06 AM';2277 Karan = '|| Shukla upto 02:16 AM, Jun 25';2278 Var = '|| Guruwara';2279 break;2280case '25-06-2021':2281 sunr = '|| 05:25 AM';2282 suns = '|| 07:23 PM';2283 moonr = '|| 08:16 PM';2284 moons = '|| 05:37 AM';2285 tithi = '|| Pratipada upto 08:59 PM';2286 naksh = '|| Mula upto 06:40 AM';2287 yog = '|| Purva Ashadha upto 04:26 AM, Jun 26';2288 Karan = '|| Brahma upto 10:38 PM';2289 Var = '|| Shukrawara';2290 break;2291case '26-06-2021':2292 sunr = '|| 05:25 AM';2293 suns = '|| 07:23 PM';2294 moonr = '|| 09:14 PM';2295 moons = '|| 06:43 AM';2296 tithi = '|| Dwitiya upto 06:11 PM';2297 naksh = '|| Uttara Ashadha upto 02:36 AM, Jun 27';2298 yog = '|| Indra upto 07:19 PM';2299 Karan = '|| Taitila upto 07:31 AM';2300 Var = '|| Shaniwara';2301 break;2302case '27-06-2021':2303 sunr = '|| 05:25 AM';2304 suns = '|| 07:23 PM';2305 moonr = '|| 10:03 PM';2306 moons = '|| 07:50 AM';2307 tithi = '|| Tritiya upto 03:54 PM';2308 naksh = '|| Shravana upto 01:22 AM, Jun 28';2309 yog = '|| Vaidhriti upto 04:26 PM';2310 Karan = '|| Vishti upto 03:54 PM';2311 Var = '|| Raviwara';2312 break;2313case '28-06-2021':2314 sunr = '|| 05:26 AM';2315 suns = '|| 07:23 PM';2316 moonr = '|| 10:45 PM';2317 moons = '|| 08:56 AM';2318 tithi = '|| Chaturthi upto 02:16 PM';2319 naksh = '|| Dhanishtha upto 12:49 AM, Jun 29';2320 yog = '|| Vishkambha upto 02:05 PM';2321 Karan = '|| Balava upto 02:16 PM';2322 Var = '|| Somawara';2323 break;2324case '29-06-2021':2325 sunr = '|| 05:26 AM';2326 suns = '|| 07:23 PM';2327 moonr = '|| 11:21 PM';2328 moons = '|| 09:58 AM';2329 tithi = '|| Panchami upto 01:22 PM';2330 naksh = '|| Shatabhisha upto 01:02 AM, Jun 30';2331 yog = '|| Priti upto 12:21 PM';2332 Karan = '|| Taitila upto 01:22 PM';2333 Var = '|| Mangalawara';2334 break;2335case '30-06-2021':2336 sunr = '|| 05:26 AM';2337 suns = '|| 07:23 PM';2338 moonr = '|| 11:53 PM';2339 moons = '|| 10:57 AM';2340 tithi = '|| Shashthi upto 01:18 PM';2341 naksh = '|| Purva Bhadrapada upto 02:03 AM, Jul 01';2342 yog = '|| Ayushman upto 11:15 AM';2343 Karan = '|| Vanija upto 01:18 PM';2344 Var = '|| Budhawara';2345 break;2346case '01-07-2021':2347 sunr = '|| 05:27 AM';2348 suns = '|| 07:23 PM';2349 moonr = '|| 12:23 AM, Jul 02';2350 moons = '|| 11:53 AM';2351 tithi = '|| Saptami upto 02:01 PM';2352 naksh = '|| Uttara Bhadrapada upto 03:49 AM, Jul 02';2353 yog = '|| Saubhagya upto 10:47 AM';2354 Karan = '|| Bava upto 02:01 PM';2355 Var = '|| Guruwara';2356 break;2357case '02-07-2021':2358 sunr = '|| 05:27 AM';2359 suns = '|| 07:23 PM';2360 moonr = '|| 12:52 AM, Jul 03';2361 moons = '|| 12:47 PM';2362 tithi = '|| Ashtami upto 03:28 PM';2363 naksh = '|| Revati upto Full Night';2364 yog = '|| Shobhana upto 10:54 AM';2365 Karan = '|| Kaulava upto 03:28 PM';2366 Var = '|| Shukrawara';2367 break;2368case '03-07-2021':2369 sunr = '|| 05:28 AM';2370 suns = '|| 07:23 PM';2371 moonr = '|| 01:21 AM, Jul 04';2372 moons = '|| 01:40 PM';2373 tithi = '|| Navami upto 05:30 PM';2374 naksh = '|| Revati upto 06:14 AM';2375 yog = '|| Atiganda upto 11:29 AM';2376 Karan = '|| Garaja upto 05:30 PM';2377 Var = '|| Shaniwara';2378 break;2379case '04-07-2021':2380 sunr = '|| 05:28 AM';2381 suns = '|| 07:23 PM';2382 moonr = '|| 01:52 AM, Jul 05';2383 moons = '|| 02:33 PM';2384 tithi = '|| Dashami upto 07:55 PM';2385 naksh = '|| Ashwini upto 09:06 AM';2386 yog = '|| Sukarman upto 12:25 PM';2387 Karan = '|| Vanija upto 06:40 AM';2388 Var = '|| Raviwara';2389 break;2390case '05-07-2021':2391 sunr = '|| 05:28 AM';2392 suns = '|| 07:23 PM';2393 moonr = '|| 02:26 AM, Jul 06';2394 moons = '|| 03:26 PM';2395 tithi = '|| Ekadashi upto 10:30 PM';2396 naksh = '|| Bharani upto 12:12 PM';2397 yog = '|| Dhriti upto 01:30 PM';2398 Karan = '|| Bava upto 09:12 AM';2399 Var = '|| Somawara';2400 break;2401case '06-07-2021':2402 sunr = '|| 05:29 AM';2403 suns = '|| 07:23 PM';2404 moonr = '|| 03:03 AM, Jul 07';2405 moons = '|| 04:21 PM';2406 tithi = '|| Dwadashi upto 01:02 AM, Jul 07';2407 naksh = '|| Krittika upto 03:21 PM';2408 yog = '|| Shula upto 02:37 PM';2409 Karan = '|| Kaulava upto 11:47 AM';2410 Var = '|| Mangalawara';2411 break;2412case '07-07-2021':2413 sunr = '|| 05:29 AM';2414 suns = '|| 07:23 PM';2415 moonr = '|| 03:45 AM, Jul 08';2416 moons = '|| 05:16 PM';2417 tithi = '|| Trayodashi upto 03:20 AM, Jul 08';2418 naksh = '|| Rohini upto 06:19 PM';2419 yog = '|| Ganda upto 03:36 PM';2420 Karan = '|| Garaja upto 02:13 PM';2421 Var = '|| Budhawara';2422 break;2423case '08-07-2021':2424 sunr = '|| 05:30 AM';2425 suns = '|| 07:23 PM';2426 moonr = '|| 04:33 AM, Jul 09';2427 moons = '|| 06:11 PM';2428 tithi = '|| Chaturdashi upto 05:16 AM, Jul 09';2429 naksh = '|| Mrigashirsha upto 08:59 PM';2430 yog = '|| Vriddhi upto 04:20 PM';2431 Karan = '|| Vishti upto 04:21 PM';2432 Var = '|| Guruwara';2433 break;2434case '09-07-2021':2435 sunr = '|| 05:30 AM';2436 suns = '|| 07:22 PM';2437 moonr = '|| 05:25 AM, Jul 10';2438 moons = '|| 07:04 PM';2439 tithi = '|| Amavasya upto Full Night';2440 naksh = '|| Ardra upto 11:14 PM';2441 yog = '|| Dhruva upto 04:46 PM';2442 Karan = '|| Chatushpada upto 06:04 PM';2443 Var = '|| Shukrawara';2444 break;2445case '10-07-2021':2446 sunr = '|| 05:31 AM';2447 suns = '|| 07:22 PM';2448 moonr = '|| No Moonrise';2449 moons = '|| 07:54 PM';2450 tithi = '|| Amavasya upto 06:46 AM';2451 naksh = '|| Punarvasu upto 01:02 AM, Jul 11';2452 yog = '|| Vyaghata upto 04:50 PM';2453 Karan = '|| Nagava upto 06:46 AM';2454 Var = '|| Shaniwara';2455 break;2456case '11-07-2021':2457 sunr = '|| 05:31 AM';2458 suns = '|| 07:22 PM';2459 moonr = '|| 06:22 AM';2460 moons = '|| 08:40 PM';2461 tithi = '|| Pratipada upto 07:47 AM';2462 naksh = '|| Pushya upto 02:22 AM, Jul 12';2463 yog = '|| Harshana upto 04:32 PM';2464 Karan = '|| Bava upto 07:47 AM';2465 Var = '|| Raviwara';2466 break;2467case '12-07-2021':2468 sunr = '|| 05:32 AM';2469 suns = '|| 07:22 PM';2470 moonr = '|| 07:21 AM';2471 moons = '|| 09:22 PM';2472 tithi = '|| Dwitiya upto 08:19 AM';2473 naksh = '|| Ashlesha upto 03:15 AM, Jul 13';2474 yog = '|| Vajra upto 03:51 PM';2475 Karan = '|| Kaulava upto 08:19 AM';2476 Var = '|| Somawara';2477 break;2478case '13-07-2021':2479 sunr = '|| 05:32 AM';2480 suns = '|| 07:21 PM';2481 moonr = '|| 08:21 AM';2482 moons = '|| 10:00 PM';2483 tithi = '|| Tritiya upto 08:24 AM';2484 naksh = '|| Magha upto 03:41 AM, Jul 14';2485 yog = '|| Siddhi upto 02:49 PM';2486 Karan = '|| Garaja upto 08:24 AM';2487 Var = '|| Mangalawara';2488 break;2489case '14-07-2021':2490 sunr = '|| 05:33 AM';2491 suns = '|| 07:21 PM';2492 moonr = '|| 09:21 AM';2493 moons = '|| 10:35 PM';2494 tithi = '|| Chaturthi upto 08:02 AM';2495 naksh = '|| Purva Phalguni upto 03:43 AM, Jul 15';2496 yog = '|| Vyatipata upto 01:27 PM';2497 Karan = '|| Vishti upto 08:02 AM';2498 Var = '|| Budhawara';2499 break;2500case '15-07-2021':2501 sunr = '|| 05:33 AM';2502 suns = '|| 07:21 PM';2503 moonr = '|| 10:21 AM';2504 moons = '|| 11:08 PM';2505 tithi = '|| Panchami upto 07:16 AM';2506 naksh = '|| Uttara Phalguni upto 03:21 AM, Jul 16';2507 yog = '|| Varigha upto 11:44 AM';2508 Karan = '|| Balava upto 07:16 AM';2509 Var = '|| Guruwara';2510 break;2511case '16-07-2021':2512 sunr = '|| 05:34 AM';2513 suns = '|| 07:20 PM';2514 moonr = '|| 11:22 AM';2515 moons = '|| 11:41 PM';2516 tithi = '|| Shashthi upto 06:06 AM';2517 naksh = '|| Saptami upto 04:34 AM, Jul 17';2518 yog = '|| Hasta upto 02:37 AM, Jul 17';2519 Karan = '|| Parigha upto 09:43 AM';2520 Var = '|| Shukrawara';2521 break;2522case '17-07-2021':2523 sunr = '|| 05:34 AM';2524 suns = '|| 07:20 PM';2525 moonr = '|| 12:23 PM';2526 moons = '|| 12:16 AM, Jul 18';2527 tithi = '|| Ashtami upto 02:41 AM, Jul 18';2528 naksh = '|| Chitra upto 01:33 AM, Jul 18';2529 yog = '|| Shiva upto 07:24 AM';2530 Karan = '|| Siddha upto 04:48 AM, Jul 18';2531 Var = '|| Shaniwara';2532 break;2533case '18-07-2021':2534 sunr = '|| 05:35 AM';2535 suns = '|| 07:20 PM';2536 moonr = '|| 01:27 PM';2537 moons = '|| 12:54 AM, Jul 19';2538 tithi = '|| Navami upto 12:28 AM, Jul 19';2539 naksh = '|| Swati upto 12:08 AM, Jul 19';2540 yog = '|| Sadhya upto 01:57 AM, Jul 19';2541 Karan = '|| Balava upto 01:37 PM';2542 Var = '|| Raviwara';2543 break;2544case '19-07-2021':2545 sunr = '|| 05:35 AM';2546 suns = '|| 07:19 PM';2547 moonr = '|| 02:33 PM';2548 moons = '|| 01:36 AM, Jul 20';2549 tithi = '|| Dashami upto 09:59 PM';2550 naksh = '|| Vishakha upto 10:27 PM';2551 yog = '|| Shubha upto 10:52 PM';2552 Karan = '|| Taitila upto 11:16 AM';2553 Var = '|| Somawara';2554 break;2555 2556 }2557 sunRise.innerHTML = sunr;2558 sunSet.innerHTML = suns;2559 moonRise.innerHTML = moonr;2560 moonSet.innerHTML = moons;2561 Tithi.innerHTML = tithi;2562 Naksh.innerHTML = naksh;2563 Yog.innerHTML = yog;2564 karan.innerHTML = Karan;2565 varr.innerHTML = Var;...

Full Screen

Full Screen

angular-moment.js

Source:angular-moment.js Github

copy

Full Screen

1/* angular-moment.js / v1.0.0-beta.5 / (c) 2013, 2014, 2015, 2016 Uri Shaked / MIT Licence */2'format amd';3/* global define */4(function () {5 'use strict';6 function isUndefinedOrNull(val) {7 return angular.isUndefined(val) || val === null;8 }9 function requireMoment() {10 try {11 return require('moment'); // Using nw.js or browserify?12 } catch (e) {13 throw new Error('Please install moment via npm. Please reference to: https://github.com/urish/angular-moment'); // Add wiki/troubleshooting section?14 }15 }16 function angularMoment(angular, moment) {17 if(typeof moment === 'undefined') {18 if(typeof require === 'function') {19 moment = requireMoment();20 }else{21 throw new Error('Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment'); // Add wiki/troubleshooting section?22 }23 }24 /**25 * @ngdoc overview26 * @name angularMoment27 *28 * @description29 * angularMoment module provides moment.js functionality for angular.js apps.30 */31 return angular.module('angularMoment', [])32 /**33 * @ngdoc object34 * @name angularMoment.config:angularMomentConfig35 *36 * @description37 * Common configuration of the angularMoment module38 */39 .constant('angularMomentConfig', {40 /**41 * @ngdoc property42 * @name angularMoment.config.angularMomentConfig#preprocess43 * @propertyOf angularMoment.config:angularMomentConfig44 * @returns {function} A preprocessor function that will be applied on all incoming dates45 *46 * @description47 * Defines a preprocessor function to apply on all input dates (e.g. the input of `am-time-ago`,48 * `amCalendar`, etc.). The function must return a `moment` object.49 *50 * @example51 * // Causes angular-moment to always treat the input values as unix timestamps52 * angularMomentConfig.preprocess = function(value) {53 * return moment.unix(value);54 * }55 */56 preprocess: null,57 /**58 * @ngdoc property59 * @name angularMoment.config.angularMomentConfig#timezone60 * @propertyOf angularMoment.config:angularMomentConfig61 * @returns {string} The default timezone62 *63 * @description64 * The default timezone (e.g. 'Europe/London'). Empty string by default (does not apply65 * any timezone shift).66 *67 * NOTE: This option requires moment-timezone >= 0.3.0.68 */69 timezone: null,70 /**71 * @ngdoc property72 * @name angularMoment.config.angularMomentConfig#format73 * @propertyOf angularMoment.config:angularMomentConfig74 * @returns {string} The pre-conversion format of the date75 *76 * @description77 * Specify the format of the input date. Essentially it's a78 * default and saves you from specifying a format in every79 * element. Overridden by element attr. Null by default.80 */81 format: null,82 /**83 * @ngdoc property84 * @name angularMoment.config.angularMomentConfig#statefulFilters85 * @propertyOf angularMoment.config:angularMomentConfig86 * @returns {boolean} Whether angular-moment filters should be stateless (or not)87 *88 * @description89 * Specifies whether the filters included with angular-moment are stateful.90 * Stateful filters will automatically re-evaluate whenever you change the timezone91 * or locale settings, but may negatively impact performance. true by default.92 */93 statefulFilters: true94 })95 /**96 * @ngdoc object97 * @name angularMoment.object:moment98 *99 * @description100 * moment global (as provided by the moment.js library)101 */102 .constant('moment', moment)103 /**104 * @ngdoc object105 * @name angularMoment.config:amTimeAgoConfig106 * @module angularMoment107 *108 * @description109 * configuration specific to the amTimeAgo directive110 */111 .constant('amTimeAgoConfig', {112 /**113 * @ngdoc property114 * @name angularMoment.config.amTimeAgoConfig#withoutSuffix115 * @propertyOf angularMoment.config:amTimeAgoConfig116 * @returns {boolean} Whether to include a suffix in am-time-ago directive117 *118 * @description119 * Defaults to false.120 */121 withoutSuffix: false,122 /**123 * @ngdoc property124 * @name angularMoment.config.amTimeAgoConfig#serverTime125 * @propertyOf angularMoment.config:amTimeAgoConfig126 * @returns {number} Server time in milliseconds since the epoch127 *128 * @description129 * If set, time ago will be calculated relative to the given value.130 * If null, local time will be used. Defaults to null.131 */132 serverTime: null,133 /**134 * @ngdoc property135 * @name angularMoment.config.amTimeAgoConfig#titleFormat136 * @propertyOf angularMoment.config:amTimeAgoConfig137 * @returns {string} The format of the date to be displayed in the title of the element. If null,138 * the directive set the title of the element.139 *140 * @description141 * The format of the date used for the title of the element. null by default.142 */143 titleFormat: null,144 /**145 * @ngdoc property146 * @name angularMoment.config.amTimeAgoConfig#fullDateThreshold147 * @propertyOf angularMoment.config:amTimeAgoConfig148 * @returns {number} The minimum number of days for showing a full date instead of relative time149 *150 * @description151 * The threshold for displaying a full date. The default is null, which means the date will always152 * be relative, and full date will never be displayed.153 */154 fullDateThreshold: null,155 /**156 * @ngdoc property157 * @name angularMoment.config.amTimeAgoConfig#fullDateFormat158 * @propertyOf angularMoment.config:amTimeAgoConfig159 * @returns {string} The format to use when displaying a full date.160 *161 * @description162 * Specify the format of the date when displayed as full date. null by default.163 */164 fullDateFormat: null165 })166 /**167 * @ngdoc directive168 * @name angularMoment.directive:amTimeAgo169 * @module angularMoment170 *171 * @restrict A172 */173 .directive('amTimeAgo', ['$window', 'moment', 'amMoment', 'amTimeAgoConfig', function ($window, moment, amMoment, amTimeAgoConfig) {174 return function (scope, element, attr) {175 var activeTimeout = null;176 var currentValue;177 var withoutSuffix = amTimeAgoConfig.withoutSuffix;178 var titleFormat = amTimeAgoConfig.titleFormat;179 var fullDateThreshold = amTimeAgoConfig.fullDateThreshold;180 var fullDateFormat = amTimeAgoConfig.fullDateFormat;181 var localDate = new Date().getTime();182 var modelName = attr.amTimeAgo;183 var currentFrom;184 var isTimeElement = ('TIME' === element[0].nodeName.toUpperCase());185 var setTitleTime = !element.attr('title');186 function getNow() {187 var now;188 if (currentFrom) {189 now = currentFrom;190 } else if (amTimeAgoConfig.serverTime) {191 var localNow = new Date().getTime();192 var nowMillis = localNow - localDate + amTimeAgoConfig.serverTime;193 now = moment(nowMillis);194 }195 else {196 now = moment();197 }198 return now;199 }200 function cancelTimer() {201 if (activeTimeout) {202 $window.clearTimeout(activeTimeout);203 activeTimeout = null;204 }205 }206 function updateTime(momentInstance) {207 var daysAgo = getNow().diff(momentInstance, 'day');208 var showFullDate = fullDateThreshold && daysAgo >= fullDateThreshold;209 if (showFullDate) {210 element.text(momentInstance.format(fullDateFormat));211 } else {212 element.text(momentInstance.from(getNow(), withoutSuffix));213 }214 if (titleFormat && setTitleTime) {215 element.attr('title', momentInstance.format(titleFormat));216 }217 if (!showFullDate) {218 var howOld = Math.abs(getNow().diff(momentInstance, 'minute'));219 var secondsUntilUpdate = 3600;220 if (howOld < 1) {221 secondsUntilUpdate = 1;222 } else if (howOld < 60) {223 secondsUntilUpdate = 30;224 } else if (howOld < 180) {225 secondsUntilUpdate = 300;226 }227 activeTimeout = $window.setTimeout(function () {228 updateTime(momentInstance);229 }, secondsUntilUpdate * 1000);230 }231 }232 function updateDateTimeAttr(value) {233 if (isTimeElement) {234 element.attr('datetime', value);235 }236 }237 function updateMoment() {238 cancelTimer();239 if (currentValue) {240 var momentValue = amMoment.preprocessDate(currentValue);241 updateTime(momentValue);242 updateDateTimeAttr(momentValue.toISOString());243 }244 }245 scope.$watch(modelName, function (value) {246 if (isUndefinedOrNull(value) || (value === '')) {247 cancelTimer();248 if (currentValue) {249 element.text('');250 updateDateTimeAttr('');251 currentValue = null;252 }253 return;254 }255 currentValue = value;256 updateMoment();257 });258 if (angular.isDefined(attr.amFrom)) {259 scope.$watch(attr.amFrom, function (value) {260 if (isUndefinedOrNull(value) || (value === '')) {261 currentFrom = null;262 } else {263 currentFrom = moment(value);264 }265 updateMoment();266 });267 }268 if (angular.isDefined(attr.amWithoutSuffix)) {269 scope.$watch(attr.amWithoutSuffix, function (value) {270 if (typeof value === 'boolean') {271 withoutSuffix = value;272 updateMoment();273 } else {274 withoutSuffix = amTimeAgoConfig.withoutSuffix;275 }276 });277 }278 attr.$observe('amFullDateThreshold', function (newValue) {279 fullDateThreshold = newValue;280 updateMoment();281 });282 attr.$observe('amFullDateFormat', function (newValue) {283 fullDateFormat = newValue;284 updateMoment();285 });286 scope.$on('$destroy', function () {287 cancelTimer();288 });289 scope.$on('amMoment:localeChanged', function () {290 updateMoment();291 });292 };293 }])294 /**295 * @ngdoc service296 * @name angularMoment.service.amMoment297 * @module angularMoment298 */299 .service('amMoment', ['moment', '$rootScope', '$log', 'angularMomentConfig', function (moment, $rootScope, $log, angularMomentConfig) {300 var defaultTimezone = null;301 /**302 * @ngdoc function303 * @name angularMoment.service.amMoment#changeLocale304 * @methodOf angularMoment.service.amMoment305 *306 * @description307 * Changes the locale for moment.js and updates all the am-time-ago directive instances308 * with the new locale. Also broadcasts an `amMoment:localeChanged` event on $rootScope.309 *310 * @param {string} locale Locale code (e.g. en, es, ru, pt-br, etc.)311 * @param {object} customization object of locale strings to override312 */313 this.changeLocale = function (locale, customization) {314 var result = moment.locale(locale, customization);315 if (angular.isDefined(locale)) {316 $rootScope.$broadcast('amMoment:localeChanged');317 }318 return result;319 };320 /**321 * @ngdoc function322 * @name angularMoment.service.amMoment#changeTimezone323 * @methodOf angularMoment.service.amMoment324 *325 * @description326 * Changes the default timezone for amCalendar, amDateFormat and amTimeAgo. Also broadcasts an327 * `amMoment:timezoneChanged` event on $rootScope.328 *329 * Note: this method works only if moment-timezone > 0.3.0 is loaded330 *331 * @param {string} timezone Timezone name (e.g. UTC)332 */333 this.changeTimezone = function (timezone) {334 if (moment.tz && moment.tz.setDefault) {335 moment.tz.setDefault(timezone);336 $rootScope.$broadcast('amMoment:timezoneChanged');337 } else {338 $log.warn('angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater.');339 }340 angularMomentConfig.timezone = timezone;341 defaultTimezone = timezone;342 };343 /**344 * @ngdoc function345 * @name angularMoment.service.amMoment#preprocessDate346 * @methodOf angularMoment.service.amMoment347 *348 * @description349 * Preprocess a given value and convert it into a Moment instance appropriate for use in the350 * am-time-ago directive and the filters. The behavior of this function can be overriden by351 * setting `angularMomentConfig.preprocess`.352 *353 * @param {*} value The value to be preprocessed354 * @return {Moment} A `moment` object355 */356 this.preprocessDate = function (value) {357 // Configure the default timezone if needed358 if (defaultTimezone !== angularMomentConfig.timezone) {359 this.changeTimezone(angularMomentConfig.timezone);360 }361 if (angularMomentConfig.preprocess) {362 return angularMomentConfig.preprocess(value);363 }364 if (!isNaN(parseFloat(value)) && isFinite(value)) {365 // Milliseconds since the epoch366 return moment(parseInt(value, 10));367 }368 // else just returns the value as-is.369 return moment(value);370 };371 }])372 /**373 * @ngdoc filter374 * @name angularMoment.filter:amParse375 * @module angularMoment376 */377 .filter('amParse', ['moment', function (moment) {378 return function (value, format) {379 return moment(value, format);380 };381 }])382 /**383 * @ngdoc filter384 * @name angularMoment.filter:amFromUnix385 * @module angularMoment386 */387 .filter('amFromUnix', ['moment', function (moment) {388 return function (value) {389 return moment.unix(value);390 };391 }])392 /**393 * @ngdoc filter394 * @name angularMoment.filter:amUtc395 * @module angularMoment396 */397 .filter('amUtc', ['moment', function (moment) {398 return function (value) {399 return moment.utc(value);400 };401 }])402 /**403 * @ngdoc filter404 * @name angularMoment.filter:amUtcOffset405 * @module angularMoment406 *407 * @description408 * Adds a UTC offset to the given timezone object. The offset can be a number of minutes, or a string such as409 * '+0300', '-0300' or 'Z'.410 */411 .filter('amUtcOffset', ['amMoment', function (amMoment) {412 function amUtcOffset(value, offset) {413 return amMoment.preprocessDate(value).utcOffset(offset);414 }415 return amUtcOffset;416 }])417 /**418 * @ngdoc filter419 * @name angularMoment.filter:amLocal420 * @module angularMoment421 */422 .filter('amLocal', ['moment', function (moment) {423 return function (value) {424 return moment.isMoment(value) ? value.local() : null;425 };426 }])427 /**428 * @ngdoc filter429 * @name angularMoment.filter:amTimezone430 * @module angularMoment431 *432 * @description433 * Apply a timezone onto a given moment object, e.g. 'America/Phoenix').434 *435 * You need to include moment-timezone.js for timezone support.436 */437 .filter('amTimezone', ['amMoment', 'angularMomentConfig', '$log', function (amMoment, angularMomentConfig, $log) {438 function amTimezone(value, timezone) {439 var aMoment = amMoment.preprocessDate(value);440 if (!timezone) {441 return aMoment;442 }443 if (aMoment.tz) {444 return aMoment.tz(timezone);445 } else {446 $log.warn('angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?');447 return aMoment;448 }449 }450 return amTimezone;451 }])452 /**453 * @ngdoc filter454 * @name angularMoment.filter:amCalendar455 * @module angularMoment456 */457 .filter('amCalendar', ['moment', 'amMoment', 'angularMomentConfig', function (moment, amMoment, angularMomentConfig) {458 function amCalendarFilter(value) {459 if (isUndefinedOrNull(value)) {460 return '';461 }462 var date = amMoment.preprocessDate(value);463 return date.isValid() ? date.calendar() : '';464 }465 // Since AngularJS 1.3, filters have to explicitly define being stateful466 // (this is no longer the default).467 amCalendarFilter.$stateful = angularMomentConfig.statefulFilters;468 return amCalendarFilter;469 }])470 /**471 * @ngdoc filter472 * @name angularMoment.filter:amDifference473 * @module angularMoment474 */475 .filter('amDifference', ['moment', 'amMoment', 'angularMomentConfig', function (moment, amMoment, angularMomentConfig) {476 function amDifferenceFilter(value, otherValue, unit, usePrecision) {477 if (isUndefinedOrNull(value)) {478 return '';479 }480 var date = amMoment.preprocessDate(value);481 var date2 = !isUndefinedOrNull(otherValue) ? amMoment.preprocessDate(otherValue) : moment();482 if (!date.isValid() || !date2.isValid()) {483 return '';484 }485 return date.diff(date2, unit, usePrecision);486 }487 amDifferenceFilter.$stateful = angularMomentConfig.statefulFilters;488 return amDifferenceFilter;489 }])490 /**491 * @ngdoc filter492 * @name angularMoment.filter:amDateFormat493 * @module angularMoment494 * @function495 */496 .filter('amDateFormat', ['moment', 'amMoment', 'angularMomentConfig', function (moment, amMoment, angularMomentConfig) {497 function amDateFormatFilter(value, format) {498 if (isUndefinedOrNull(value)) {499 return '';500 }501 var date = amMoment.preprocessDate(value);502 if (!date.isValid()) {503 return '';504 }505 return date.format(format);506 }507 amDateFormatFilter.$stateful = angularMomentConfig.statefulFilters;508 return amDateFormatFilter;509 }])510 /**511 * @ngdoc filter512 * @name angularMoment.filter:amDurationFormat513 * @module angularMoment514 * @function515 */516 .filter('amDurationFormat', ['moment', 'angularMomentConfig', function (moment, angularMomentConfig) {517 function amDurationFormatFilter(value, format, suffix) {518 if (isUndefinedOrNull(value)) {519 return '';520 }521 return moment.duration(value, format).humanize(suffix);522 }523 amDurationFormatFilter.$stateful = angularMomentConfig.statefulFilters;524 return amDurationFormatFilter;525 }])526 /**527 * @ngdoc filter528 * @name angularMoment.filter:amTimeAgo529 * @module angularMoment530 * @function531 */532 .filter('amTimeAgo', ['moment', 'amMoment', 'angularMomentConfig', function (moment, amMoment, angularMomentConfig) {533 function amTimeAgoFilter(value, suffix, from) {534 var date, dateFrom;535 if (isUndefinedOrNull(value)) {536 return '';537 }538 value = amMoment.preprocessDate(value);539 date = moment(value);540 if (!date.isValid()) {541 return '';542 }543 dateFrom = moment(from);544 if (!isUndefinedOrNull(from) && dateFrom.isValid()) {545 return date.from(dateFrom, suffix);546 }547 return date.fromNow(suffix);548 }549 amTimeAgoFilter.$stateful = angularMomentConfig.statefulFilters;550 return amTimeAgoFilter;551 }])552 /**553 * @ngdoc filter554 * @name angularMoment.filter:amSubtract555 * @module angularMoment556 * @function557 */558 .filter('amSubtract', ['moment', 'angularMomentConfig', function (moment, angularMomentConfig) {559 function amSubtractFilter(value, amount, type) {560 if (isUndefinedOrNull(value)) {561 return '';562 }563 return moment(value).subtract(parseInt(amount, 10), type);564 }565 amSubtractFilter.$stateful = angularMomentConfig.statefulFilters;566 return amSubtractFilter;567 }])568 /**569 * @ngdoc filter570 * @name angularMoment.filter:amAdd571 * @module angularMoment572 * @function573 */574 .filter('amAdd', ['moment', 'angularMomentConfig', function (moment, angularMomentConfig) {575 function amAddFilter(value, amount, type) {576 if (isUndefinedOrNull(value)) {577 return '';578 }579 return moment(value).add(parseInt(amount, 10), type);580 }581 amAddFilter.$stateful = angularMomentConfig.statefulFilters;582 return amAddFilter;583 }])584 /**585 * @ngdoc filter586 * @name angularMoment.filter:amStartOf587 * @module angularMoment588 * @function589 */590 .filter('amStartOf', ['moment', 'angularMomentConfig', function (moment, angularMomentConfig) {591 function amStartOfFilter(value, type) {592 if (isUndefinedOrNull(value)) {593 return '';594 }595 return moment(value).startOf(type);596 }597 amStartOfFilter.$stateful = angularMomentConfig.statefulFilters;598 return amStartOfFilter;599 }])600 /**601 * @ngdoc filter602 * @name angularMoment.filter:amEndOf603 * @module angularMoment604 * @function605 */606 .filter('amEndOf', ['moment', 'angularMomentConfig', function (moment, angularMomentConfig) {607 function amEndOfFilter(value, type) {608 if (isUndefinedOrNull(value)) {609 return '';610 }611 return moment(value).endOf(type);612 }613 amEndOfFilter.$stateful = angularMomentConfig.statefulFilters;614 return amEndOfFilter;615 }]);616 }617 if (typeof define === 'function' && define.amd) {618 define(['angular', 'moment'], angularMoment);619 } else if (typeof module !== 'undefined' && module && module.exports) {620 angularMoment(require('angular'), require('moment'));621 module.exports = 'angularMoment';622 } else {623 angularMoment(angular, (typeof global !== 'undefined' ? global : window).moment);624 }...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

1import { derived, writable } from 'svelte/store';2import {3 resources as mResources,4 counterHistory as mCounterHistory,5 upgradeStatus as mUpgradeStatus,6 unlockedUpgrades as mUnlockedUpgrades,7 gameStatus as mGameStatus,8 poisonAmount as mPoisonAmount,9} from './matterStores';10import {11 resources as amResources,12 counterHistory as amCounterHistory,13 upgradeStatus as amUpgradeStatus,14 unlockedUpgrades as amUnlockedUpgrades,15 gameStatus as amGameStatus,16 poisonAmount as amPoisonAmount,17} from './antimatterStores';18import options from './optionStores';19export const amDimension = writable(false);20// Player info / random21export const combinedStore = derived(22 [amDimension, options, mResources, mCounterHistory, mUpgradeStatus, mUnlockedUpgrades, mGameStatus, mPoisonAmount,23 amResources, amCounterHistory, amUpgradeStatus, amUnlockedUpgrades, amGameStatus, amPoisonAmount],24 ([$amDimension, $options, $mResources, $mCounterHistory, $mUpgradeStatus, $mUnlockedUpgrades, $mGameStatus, $mPoisonAmount,25 $amResources, $amCounterHistory, $amUpgradeStatus, $amUnlockedUpgrades, $amGameStatus, $amPoisonAmount]) => {26 return {27 amDimension: $amDimension,28 options: $options,29 resources: {30 matter: $mResources,31 antimatter: $amResources,32 },33 counterHistory: {34 matter: $mCounterHistory,35 antimatter: $amCounterHistory,36 },37 upgradeStatus: {38 matter: $mUpgradeStatus,39 antimatter: $amUpgradeStatus,40 },41 unlockedUpgrades: {42 matter: $mUnlockedUpgrades,43 antimatter: $amUnlockedUpgrades,44 },45 gameStatus: {46 matter: $mGameStatus,47 antimatter: $amGameStatus,48 },49 poisonAmount: {50 matter: $mPoisonAmount,51 antimatter: $amPoisonAmount,52 },53 };54});55export const currentStore = derived(56 [amDimension, options, mResources, mCounterHistory, mUpgradeStatus, mUnlockedUpgrades, mGameStatus, mPoisonAmount,57 amResources, amCounterHistory, amUpgradeStatus, amUnlockedUpgrades, amGameStatus, amPoisonAmount],58 ([$amDimension, $options, $mResources, $mCounterHistory, $mUpgradeStatus, $mUnlockedUpgrades, $mGameStatus, $mPoisonAmount,59 $amResources, $amCounterHistory, $amUpgradeStatus, $amUnlockedUpgrades, $amGameStatus, $amPoisonAmount]) => {60 return {61 amDimension: $amDimension,62 options: $options,63 resources: $amDimension ? $amResources : $mResources,64 upgradeStatus: $amDimension ? $amUpgradeStatus : $mUpgradeStatus,65 unlockedUpgrades: $amDimension ? $amUnlockedUpgrades : $mUnlockedUpgrades,66 gameStatus: $amDimension ? $amGameStatus : $mGameStatus,67 poisonAmount: $amDimension ? $amPoisonAmount : $mPoisonAmount,68 counterHistory: $amDimension ? $amCounterHistory : $mCounterHistory,69 };...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var apiMocker = require('connect-api-mocker');2var express = require('express');3var app = express();4var bodyParser = require('body-parser');5var path = require('path');6var fs = require('fs');7var url = require('url');8var cors = require('cors');9var apimocker = apiMocker(path.join(__dirname, 'mocks'));10var jsonParser = bodyParser.json();11var urlencodedParser = bodyParser.urlencoded({ extended: true });12var corsOptions = {13};14app.use(cors(corsOptions));15app.use(apimocker);16app.use(bodyParser.json());17app.use(bodyParser.urlencoded({ extended: true }));18app.use(express.static('public'));19app.use(express.static('mocks'));20app.use(express.static('node_modules'));21app.use(express.static('node_modules/connect-api-mocker'));22app.use(express.static('node_modules/connect-api-mocker/node_modules'));23app.use(express.static('node_modules/connect-api-mocker/node_modules/connect'));24app.use(express.static('node_modules/connect-api-mocker/node_modules/connect/node_modules'));25app.use(express.static('node_modules/connect-api-mocker/node_modules/connect/node_modules/on-finished'));26app.use(express.static('node_modules/connect-api-mocker/node_modules/connect/node_modules/parseurl'));

Full Screen

Using AI Code Generation

copy

Full Screen

1const am = require('apimocker');2am.run({3});4const am = require('apimocker');5am.run({6});

Full Screen

Using AI Code Generation

copy

Full Screen

1var am = require('apimocker');2am.server.start({3 headers: {4 },5});6var am = require('apimocker');7am.server.start({8 headers: {9 },10});11var am = require('apimocker');12am.server.start({13 headers: {14 },15});16var am = require('apimocker');17am.server.start({18 headers: {19 },20});21var am = require('apimocker');22am.server.start({

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run apimocker automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful