Home
last modified time | relevance | path

Searched refs:DAYS_IN_YEAR (Results 1 – 25 of 25) sorted by relevance

/dports/devel/py-convertdate/convertdate-2.2.0/convertdate/
H A Dfrench_republican.py19 DAYS_IN_YEAR = 365. variable
155 y5 = DAYS_IN_YEAR * 12 + 3
168 y5 = DAYS_IN_YEAR * 16 + 4
194 y4 = year * DAYS_IN_YEAR
236 if (J <= DAYS_IN_YEAR * 12 + 3 and
237 method in (100, 'romme')) or (J <= DAYS_IN_YEAR * 17 + 4 and method in (128, 'madler')):
251 J = J - DAYS_IN_YEAR * 12 - 3
265 J = J - DAYS_IN_YEAR * 16 - 4
295 y4 = trunc(J / DAYS_IN_YEAR)
297 if J == DAYS_IN_YEAR * 4:
[all …]
H A Dpositivist.py27 DAYS_IN_YEAR = 365 variable
/dports/games/openttd/openttd-12.1/src/
H A Ddate.cpp101 Year yr = 400 * (date / (DAYS_IN_YEAR * 400 + 97)); in ConvertDateToYMD()
102 int rem = date % (DAYS_IN_YEAR * 400 + 97); in ConvertDateToYMD()
105 if (rem >= DAYS_IN_YEAR * 100 + 25) { in ConvertDateToYMD()
109 rem -= DAYS_IN_YEAR * 100 + 25; in ConvertDateToYMD()
112 yr += 100 * (rem / (DAYS_IN_YEAR * 100 + 24)); in ConvertDateToYMD()
113 rem = (rem % (DAYS_IN_YEAR * 100 + 24)); in ConvertDateToYMD()
116 if (!IsLeapYear(yr) && rem >= DAYS_IN_YEAR * 4) { in ConvertDateToYMD()
119 rem -= DAYS_IN_YEAR * 4; in ConvertDateToYMD()
123 yr += 4 * (rem / (DAYS_IN_YEAR * 4 + 1)); in ConvertDateToYMD()
124 rem = rem % (DAYS_IN_YEAR * 4 + 1); in ConvertDateToYMD()
[all …]
H A Ddate_type.h29 static const int DAYS_IN_YEAR = 365; ///< days per year variable
75 #define DAYS_TILL(year) (DAYS_IN_YEAR * (year) + LEAP_YEARS_TILL(year))
H A Dvehicle_func.h27 static const int VEHICLE_PROFIT_MIN_AGE = DAYS_IN_YEAR * 2; ///< Only vehicles older than this have…
H A Droad.cpp196 (HasBit(e->company_avail, company) || _date >= e->intro_date + DAYS_IN_YEAR)) { in GetCompanyRoadTypes()
H A Drail.cpp259 (HasBit(e->company_avail, company) || _date >= e->intro_date + DAYS_IN_YEAR)) { in GetCompanyRailtypes()
H A Dstatusbar_gui.cpp117 SetDParamMaxValue(0, MAX_YEAR * DAYS_IN_YEAR); in UpdateWidgetSize()
H A Dtimetable_gui.cpp194 SetDParamMaxValue(0, MAX_YEAR * DAYS_IN_YEAR, 0, FS_SMALL); in UpdateWidgetSize()
H A Dship_cmd.cpp238 …CommandCost cost(EXPENSES_SHIP_RUN, this->GetRunningCost() * this->running_ticks / (DAYS_IN_YEAR *… in OnNewDay()
H A Dengine.cpp1034 if (!(e->flags & ENGINE_AVAILABLE) && _date >= (e->intro_date + DAYS_IN_YEAR)) { in EnginesMonthlyLoop()
H A Dvehicle_gui.cpp2242 SetDParamMaxValue(1, MAX_YEAR * DAYS_IN_YEAR); // Roughly the maximum year in UpdateWidgetSize()
2302 …SetDParam(0, (v->age + DAYS_IN_YEAR < v->max_age) ? STR_VEHICLE_INFO_AGE : STR_VEHICLE_INFO_AGE_RE… in DrawWidget()
H A Droadveh_cmd.cpp1718 …t(EXPENSES_ROADVEH_RUN, this->GetRunningCost() * this->running_ticks / (DAYS_IN_YEAR * DAY_TICKS)); in OnNewDay()
H A Daircraft_cmd.cpp458 …(EXPENSES_AIRCRAFT_RUN, this->GetRunningCost() * this->running_ticks / (DAYS_IN_YEAR * DAY_TICKS)); in OnNewDay()
H A Dtrain_cmd.cpp4018 …st(EXPENSES_TRAIN_RUN, this->GetRunningCost() * this->running_ticks / (DAYS_IN_YEAR * DAY_TICKS)); in OnNewDay()
/dports/games/openttd/openttd-12.1/src/ai/
H A Dai.hpp30 START_NEXT_EASY = DAYS_IN_YEAR * 2,
31 START_NEXT_MEDIUM = DAYS_IN_YEAR,
32 START_NEXT_HARD = DAYS_IN_YEAR / 2,
H A Dai_core.cpp315 return DAYS_IN_YEAR; in GetStartNextTime()
/dports/www/webtrees20/webtrees-2.0.19/webtrees/app/Module/
H A DStatisticsChartModule.php78 private const DAYS_IN_YEAR = 365.25; define in Fisharebest\\Webtrees\\Module\\StatisticsChartModule
544 $years = (int) ($age / self::DAYS_IN_YEAR);
555 $years = (int) ($age / self::DAYS_IN_YEAR);
569 $years = (int) ($age / self::DAYS_IN_YEAR);
607 $years = (int) ($row->age / self::DAYS_IN_YEAR);
617 $years = (int) ($row->age / self::DAYS_IN_YEAR);
631 $years = (int) ($row->age / self::DAYS_IN_YEAR);
670 $years = (int) ($row->age / self::DAYS_IN_YEAR);
684 $years = (int) ($row->age / self::DAYS_IN_YEAR);
702 $years = (int) ($row->age / self::DAYS_IN_YEAR);
/dports/devel/p5-Time-Moment/Time-Moment-0.44/src/
H A Ddt_core.c32 #define DAYS_IN_YEAR(y) \ macro
190 doy += DAYS_IN_YEAR(y); in dt_to_ywd()
193 const int diy = DAYS_IN_YEAR(y); in dt_to_ywd()
/dports/sysutils/onefetch/onefetch-2.10.2/cargo-crates/chrono-humanize-0.2.1/src/
H A Dhumantime.rs126 const DAYS_IN_YEAR: i64 = 365; const
256 let years = self.0.num_days() / Self::DAYS_IN_YEAR; in split_years()
257 let reminder = self.0 - Duration::days(years * Self::DAYS_IN_YEAR); in split_years()
/dports/www/miniserve/miniserve-0.18.0/cargo-crates/chrono-humanize-0.2.1/src/
H A Dhumantime.rs126 const DAYS_IN_YEAR: i64 = 365; const
256 let years = self.0.num_days() / Self::DAYS_IN_YEAR; in split_years()
257 let reminder = self.0 - Duration::days(years * Self::DAYS_IN_YEAR); in split_years()
/dports/www/ilias/ILIAS-5.4.25/libs/bower/bower_components/yui2/src/charts/as/com/yahoo/astra/utils/
H A DDateUtil.as88 public static const DAYS_IN_YEAR:int = 365; constant in com.yahoo.astra.utils.DateUtil
/dports/www/ilias6/ILIAS-6.14/libs/bower/bower_components/yui2/src/charts/as/com/yahoo/astra/utils/
H A DDateUtil.as88 public static const DAYS_IN_YEAR:int = 365; constant in com.yahoo.astra.utils.DateUtil
/dports/sysutils/linrename/util-linux-2.25.2/misc-utils/
H A Dcal.c174 #define DAYS_IN_YEAR 365 /* the common case, leap years are calculated */ macro
/dports/devel/goffice/goffice-0.10.50/goffice/graph/
H A Dgog-axis.c33 #define DAYS_IN_YEAR 365.25 macro
775 step = DAYS_IN_YEAR * N; in map_date_auto_bound()
1113 maj_months = go_fake_round (major_tick / (DAYS_IN_YEAR / 12)); in map_date_calc_ticks()
1123 min_months = go_fake_round (minor_tick / (DAYS_IN_YEAR / 12)); in map_date_calc_ticks()