Searched refs:month (Results 1 - 25 of 30) sorted by relevance

12

/haiku/src/system/libroot/posix/musl/time/
H A D__month_to_secs.c1 int __month_to_secs(int month, int is_leap) argument
7 int t = secs_through_month[month];
8 if (is_leap && month >= 2) t+=86400;
H A D__tm_to_secs.c7 int month = tm->tm_mon; local
8 if (month >= 12 || month < 0) {
9 int adj = month / 12;
10 month %= 12;
11 if (month < 0) {
13 month += 12;
19 t += __month_to_secs(month, is_leap);
/haiku/headers/private/libroot/time/
H A Dtimelocal.h38 const char* month[12]; member in struct:lc_time_t
/haiku/src/system/kernel/
H A Dreal_time_clock.cpp182 int year, month; local
184 month = tm->tm_mon + 1;
190 + 1461 * (year + 4800 + (month - 14) / 12) / 4
191 + 367 * (month - 2 - 12 * ((month - 14) / 12)) / 12
192 - 3 * ((year + 4900 + (month - 14) / 12) / 100) / 4;
202 uint32 year, month, day, l, n; local
211 month = 80 * l / 2447;
212 day = l - 2447 * month / 80;
213 l = month / 1
[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/preferences/time/
H A DBaseView.cpp84 int32 month; local
85 if (message->FindInt32("month", &month) != B_OK)
86 month = date.Month();
88 date.SetDate(year, month, day);
104 fMessage.AddInt32("month", date.Month());
H A DDateTimeView.cpp214 int32 month; local
216 if (message->FindInt32("month", &month) == B_OK
222 if (day != lastDay || month != lastMonth || year != lastYear) {
223 fDateEdit->SetDate(year, month, day);
224 fCalendarView->SetDate(year, month, day);
226 lastMonth = month;
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_fw.h42 uint8_t month; member in struct:r92c_fw_hdr
H A Dif_rtwn_fw.c148 hdr->month, hdr->date, hdr->hour, hdr->minute);
/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,
125 void SetMonth(int32 month);
142 static BString ShortMonthName(int32 month);
148 static BString LongMonthName(int32 month);
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,
[all...]
/haiku/src/system/libroot/posix/locale/
H A DLocaleData.cpp283 gPosixLCTimeInfo.month[0],
284 gPosixLCTimeInfo.month[1],
285 gPosixLCTimeInfo.month[2],
286 gPosixLCTimeInfo.month[3],
287 gPosixLCTimeInfo.month[4],
288 gPosixLCTimeInfo.month[5],
289 gPosixLCTimeInfo.month[6],
290 gPosixLCTimeInfo.month[7],
291 gPosixLCTimeInfo.month[8],
292 gPosixLCTimeInfo.month[
[all...]
/haiku/src/kits/support/
H A DDateTime.cpp478 Constructs a BDate object with \c year \c month and \c day.
486 BDate::BDate(int32 year, int32 month, int32 day) argument
488 _SetDate(year, month, day);
522 archive->FindInt32("month", &fMonth);
550 ret = into->AddInt32("month", fMonth);
582 BDate::IsValid(int32 year, int32 month, int32 day) argument
588 if (month < 1 || month > 12)
591 if (day < 1 || day > _DaysInMonth(year, month))
595 if (year == 1582 && month
640 SetDate(int32 year, int32 month, int32 day) argument
653 GetDate(int32* year, int32* month, int32* day) const argument
786 SetMonth(int32 month) argument
987 ShortMonthName(int32 month) argument
1049 LongMonthName(int32 month) argument
1179 _SetDate(int32 year, int32 month, int32 day) argument
1197 _DaysInMonth(int32 year, int32 month) argument
1210 _DateToJulianDay(int32 _year, int32 month, int32 day) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/udf/
H A DUtils.cpp95 "month: %d, day: %d, hour: %d, minute: %d, second: %d)", timestamp.type_and_timezone(),
98 timestamp.month(), timestamp.day(), timestamp.hour(), timestamp.minute(), timestamp.second()));
108 int month = timestamp.month(); local
133 for (int i = 0; i < month-1; i++) {
136 if (month > 2 && isLeapYear)
H A DUdfStructures.cpp230 get_month_length(int month, int year) argument
232 if (0 <= month && month < 12 && year >= 1970) {
234 int result = monthLengths[month];
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"));
285 // by days until we figure out what the day, month,
288 int month
[all...]
/haiku/src/system/kernel/arch/x86/
H A Darch_real_time_clock.cpp25 uint8 month; member in struct:__anon5330
67 && time1->month == time2->month
117 cmos->month = cmos_read(0x08);
132 cmos_write(0x08, cmos->month);
146 t.tm_mon = bcd_to_int(cmos->month) - 1;
168 cmos->month = int_to_bcd(t.tm_mon + 1);
/haiku/src/system/kernel/arch/m68k/
H A Darch_real_time_clock.cpp23 uint8 month; member in struct:__anon7
65 && time1->month == time2->month
103 cmos->month = cmos_read(0x08);
118 cmos_write(0x08, cmos->month);
132 t.tm_mon = bcd_to_int(cmos->month) - 1;
154 cmos->month = int_to_bcd(t.tm_mon + 1);
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660.h50 char month[3]; member in struct:ISOVolDate
64 uint8 month; member in struct:ISORecDate
/haiku/src/kits/shared/
H A DCalendarView.cpp325 int32 month; local
326 _GetYearMonthForSelection(fSelectedDay, &year, &month);
329 clone.AddInt32("month", fDate.Month());
549 int32 month; local
550 _GetYearMonthForSelection(fSelectedDay, NULL, &month);
552 return month;
569 BCalendarView::SetMonth(int32 month) argument
571 if (month < 1 || month > 12)
576 date.SetMonth(month);
611 int32 month; local
661 SetDate(int32 year, int32 month, int32 day) argument
1320 int32 month; local
[all...]
/haiku/headers/os/locale/
H A DDateFormat.h74 status_t GetMonthName(int month, BString& outName,
/haiku/src/kits/locale/
H A DDateFormat.cpp312 BDateFormat::GetMonthName(int month, BString& outName, argument
332 if (month > count || month <= 0) {
338 names[month - 1].toUTF8(stringConverter);
/haiku/headers/private/shared/
H A DCalendarView.h88 bool SetMonth(int32 month);
93 bool SetDate(int32 year, int32 month, int32 day);
148 int32* month) const;
H A DDateTimeEdit.h151 void SetDate(int32 year, int32 month, int32 day);
/haiku/src/apps/deskbar/
H A DCalendarMenuWindow.cpp95 fMonthLabel = new BStringView("month", "");
194 int32 day, month, year; local
196 message->FindInt32("month", &month);
199 _UpdateDate(BDate(year, month, day));
/haiku/src/add-ons/kernel/bus_managers/mmc/
H A Dmmc_bus.cpp289 uint8_t month = cid[0] & 0xF; local
300 { "mmc/month", B_UINT8_TYPE, {.ui8 = month}},
/haiku/src/system/libroot/add-ons/icu/
H A DICUTimeData.cpp39 fLCTimeInfo.month[i] = fMonth[i];
176 strcpy(fMonth[i], fDataBridge->posixLCTimeInfo->month[i]);

Completed in 250 milliseconds

12