Searched refs:year (Results 1 - 25 of 37) sorted by relevance

12

/haiku/src/preferences/time/
H A DBaseView.cpp80 int32 year; local
81 if (message->FindInt32("year", &year) != B_OK)
82 year = date.Year();
88 if (year >= 1970 && year <= 2037) {
89 date.SetDate(year, month, day);
105 fMessage.AddInt32("year", date.Year());
H A DDateTimeView.cpp213 int32 year; local
216 && message->FindInt32("year", &year) == B_OK) {
220 if (day != lastDay || month != lastMonth || year != lastYear) {
221 fDateEdit->SetDate(year, month, day);
222 fCalendarView->SetDate(year, month, day);
225 lastYear = year;
H A DDateTimeEdit.cpp442 // if year add 2000
542 TDateEdit::SetDate(int32 year, int32 month, int32 day) argument
544 fDate.SetDate(year, month, day);
611 message->AddInt32("year", data);
715 int32 year = int32(fHoldValue / 100) * 100 + value; local
716 if (year <= 2037 && year >= 1970)
H A DDateTimeEdit.h91 void SetDate(int32 year, int32 month, int32 day);
/haiku/src/add-ons/kernel/file_systems/udf/
H A DUtils.cpp94 DEBUG_INIT_ETC(NULL, ("timestamp: (tnt: 0x%x, type: %d, timezone: %d = 0x%x, year: %d, "
97 timestamp.timezone(),timestamp.year(),
100 if (timestamp.year() < EPOCH_YEAR || timestamp.year() >= EPOCH_YEAR + MAX_YEAR)
107 int year = timestamp.year(); local
125 int previousLeapYears = (year - 1968) / 4;
126 bool isLeapYear = (year - 1968) % 4 == 0;
131 result = (year - EPOCH_YEAR) * DAYSPERNYEAR + previousLeapYears;
H A DUdfStructures.cpp230 get_month_length(int month, int year) argument
232 if (0 <= month && month < 12 && year >= 1970) {
235 if (month == 1 && ((year - 1968) % 4 == 0))
239 DEBUG_INIT_ETC(NULL, ("month: %d, year: %d", month, year));
240 PRINT(("Invalid month or year! Returning 0\n"));
286 // and year are.
287 int year = 0;
291 clock + get_month_length(month, year+1970) < time;
292 clock += get_month_length(month, year
[all...]
/haiku/src/system/boot/platform/openfirmware/
H A Dreal_time_clock.cpp48 int second, minute, hour, day, month, year; local
49 if (of_call_method(sHandle, "get-time", 0, 6, &year, &month, &day,
/haiku/src/kits/support/
H A DDateTime.cpp478 Constructs a BDate object with \c year \c month and \c day.
480 Please note that a date before 1.1.4713 BC, a date with year 0 and a date
483 that every passed year will be interpreted as is.
486 BDate::BDate(int32 year, int32 month, int32 day) argument
488 _SetDate(year, month, day);
521 archive->FindInt32("year", &fYear);
548 ret = into->AddInt32("year", fYear);
558 Please note that a date before 1.1.4713 BC, a date with year 0 and a date
582 BDate::IsValid(int32 year, int32 month, int32 day) argument
584 // no year
640 SetDate(int32 year, int32 month, int32 day) argument
653 GetDate(int32* year, int32* month, int32* day) const argument
793 SetYear(int32 year) argument
901 IsLeapYear(int32 year) argument
1107 int32 year = d - 4800 + (m / 10); local
1179 _SetDate(int32 year, int32 month, int32 day) argument
1197 _DaysInMonth(int32 year, int32 month) argument
1213 int32 year = _year; local
[all...]
/haiku/src/system/kernel/
H A Dreal_time_clock.cpp175 /*! Converts the \a tm data to seconds. Note that the base year is not
182 int year, month; local
185 year = tm->tm_year + RTC_EPOCH_BASE_YEAR;
190 + 1461 * (year + 4800 + (month - 14) / 12) / 4
192 - 3 * ((year + 4900 + (month - 14) / 12) / 100) / 4;
202 uint32 year, month, day, l, n; local
209 year = 4000 * (l + 1) / 1461001;
210 l = l - 1461 * year / 4 + 31;
215 year = 100 * (n - 49) + year
[all...]
/haiku/headers/os/support/
H A DDateTime.h93 BDate(int32 year, int32 month, int32 day);
103 static bool IsValid(int32 year, int32 month,
111 bool SetDate(int32 year, int32 month, int32 day);
112 void GetDate(int32* year, int32* month,
126 void SetYear(int32 year);
133 static bool IsLeapYear(int32 year);
163 static int32 _DaysInMonth(int32 year, int32 month);
164 bool _SetDate(int32 year, int32 month, int32 day);
165 static int32 _DateToJulianDay(int32 year, int32 month,
/haiku/src/system/kernel/arch/x86/
H A Darch_real_time_clock.cpp26 uint8 year; member in struct:__anon5330
68 && time1->year == time2->year
116 cmos->year = cmos_read(0x09);
131 cmos_write(0x09, cmos->year);
144 t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
167 cmos->year = int_to_bcd(wholeYear % 100);
/haiku/src/servers/app/
H A DScreenConfigurations.cpp85 if (configuration->info.produced.year == info->produced.year
181 screenSettings.AddInt32("produced year",
182 configuration->info.produced.year);
224 int32 week, year; local
230 && stored.FindInt32("produced year", &year) == B_OK) {
239 configuration->info.produced.year = year;
/haiku/src/system/kernel/arch/m68k/
H A Darch_real_time_clock.cpp24 uint8 year; member in struct:__anon7
66 && time1->year == time2->year
102 cmos->year = cmos_read(0x09);
117 cmos_write(0x09, cmos->year);
130 t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
153 cmos->year = int_to_bcd(wholeYear % 100);
/haiku/src/bin/cddb_lookup/
H A Dcddb_server.cpp221 // Disk year.
224 uint32 year = strtoul(line.String(), &firstInvalid, 10); local
226 (year == (uint32)LONG_MAX || year == (uint32)LONG_MIN))
227 || (errno != 0 && year == 0)) {
230 year = 0;
234 printf("Invalid year: %s\n", line.String());
235 year = 0;
238 readResponse.year = year;
[all...]
H A Dcddb_server.h42 uint32 year; member in struct:ReadResponseData
H A Dcddb_lookup.cpp302 if (readResponse.year != 0) {
304 &readResponse.year, sizeof(int32));
325 printf("Year: %" B_PRIu32 "\n", readResponse.year);
/haiku/src/bin/unzip/
H A Dtimezone.c75 #define YDAYS(month, year) yr_days[leap(year)][month]
77 /* Nonzero if `y' is a leap year, else zero. */
112 static time_t transtime OF((ZCONST time_t janfirst, ZCONST int year,
127 static time_t transtime(janfirst, year, rulep, offset)
129 ZCONST int year;
139 leapyear = leap(year);
157 ** n - day of year.
180 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year;
223 register int year; local
[all...]
/haiku/src/system/libroot/posix/time/
H A Dstrftime.c294 case 'G': /* ISO 8601 year (four digits) */
295 case 'g': /* ISO 8601 year (two digits) */
298 ** year (the first Monday as the first day of week 1) as a decimal number
303 ** "Week 01 of a year is per definition the first week which has the
304 ** Thursday in this year, which is equivalent to the week which contains
305 ** the fourth day of January. In other words, the first week of a new year
306 ** is the week which has the majority of its days in the new year. Week 01
307 ** might also contain days from the previous year and the week before week
308 ** 01 of a year is the last week (52 or 53) of the previous year eve
315 int year; local
[all...]
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660.h49 char year[5]; member in struct:ISOVolDate
63 uint8 year; // Year - 1900 member in struct:ISORecDate
/haiku/src/apps/poorman/libhttpd/
H A Dtdate_parse.c186 is_leap( int year )
188 return year % 400? ( year % 100 ? ( year % 4 ? 0 : 1 ) : 0 ) : 1;
206 /* Leap day for this year. */
/haiku/src/apps/aboutsystem/
H A DUtilities.cpp278 // Scan the copyrights for year numbers and let the greater one win.
456 int year = atoi(string + start); local
457 if (year > 1900 && year < 2200 && year > maxYear)
458 maxYear = year;
/haiku/src/kits/shared/
H A DCalendarView.cpp324 int32 year; local
326 _GetYearMonthForSelection(fSelectedDay, &year, &month);
328 clone.AddInt32("year", fDate.Year());
539 int32 year; local
540 _GetYearMonthForSelection(fSelectedDay, &year, NULL);
542 return year;
590 BCalendarView::SetYear(int32 year) argument
594 // This can fail when going from 29 feb. on a leap year to a non-leap year.
595 if (date.Month() == 2 && date.Day() == 29 && !date.IsLeapYear(year))
610 int32 year; local
661 SetDate(int32 year, int32 month, int32 day) argument
804 _GetYearMonthForSelection(const Selection& selection, int32* year, int32* month) const argument
1319 int32 year; local
[all...]
/haiku/headers/private/graphics/common/
H A Dedid.h19 uint16 year; member in struct:__anon763
/haiku/src/apps/deskbar/
H A DCalendarMenuWindow.cpp93 fYearLabel = new BStringView("year", "");
193 int32 day, month, year; local
196 message->FindInt32("year", &year);
198 _UpdateDate(BDate(year, month, day));
/haiku/headers/private/shared/
H A DCalendarView.h89 bool SetYear(int32 year);
93 bool SetDate(int32 year, int32 month, int32 day);
147 const Selection& selection, int32* year,

Completed in 337 milliseconds

12