Path: blob/master/node_modules/@bochilteam/scraper/lib/cjs/primbons/zodiac.js
1126 views
"use strict";1Object.defineProperty(exports, "__esModule", { value: true });2function getZodiac(months, dates) {3var _a;4// https://github.com/Nurutomo/wabot-aq/blob/master/plugins/zodiac.js5const d = new Date(1970, months - 1, dates + 1);6// https://www.primbon.com/zodiak.htm7const zodiac = [8['capricorn', new Date(1970, 0, 21)],9['aquarius', new Date(1970, 1, 20)],10['pisces', new Date(1970, 2, 21)],11['aries', new Date(1970, 3, 20)],12['taurus', new Date(1970, 4, 21)],13['gemini', new Date(1970, 5, 22)],14['cancer', new Date(1970, 6, 23)],15['leo', new Date(1970, 7, 24)],16['virgo', new Date(1970, 8, 23)],17['libra', new Date(1970, 9, 24)],18['scorpio', new Date(1970, 10, 23)],19['sagitarius', new Date(1970, 11, 22)] // SAGITARIUS (23 November - 21 Desember)20];21return (_a = zodiac.find(([_, _d]) => _d >= d)) === null || _a === void 0 ? void 0 : _a[0];22}23exports.default = getZodiac;24//# sourceMappingURL=zodiac.js.map2526