/haiku-fatelf/src/bin/zip/ |
H A D | mktime.c | 169 /* Accumulated number of days from 01-Jan up to start of current month. */ 187 int years, months, days, hours, minutes, seconds; local 191 days = tm->tm_mday - 1; /* 1..31 -> 0..30 */ 198 ADJUST_TM(hours, days, 24) 200 if (days < 0) 206 days += monthlen(months, years); 207 } while (days < 0); 209 while (days >= monthlen(months, years)) { 210 days -= monthlen(months, years); 220 tm->tm_mday = days [all...] |
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/ |
H A D | util.c | 83 /* returns leap days since 1970 */ 99 time_t days; local 107 days = daze[(t>>21)&15] + ((t>>25)+10)*365 + leaps((t>>25)+10,((t>>21)&15)-1)+((t>>16)&31)-1; 109 return (((days * 24) + ((t>>11)&31)) * 60 + ((t>>5)&63) + tzoffset) * 60 + 2*(t&31); 117 int days; local 128 days = IS_LEAP_YEAR(1980+y) ? 366 : 365; 129 if (s < days) break; 130 s -= days;
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/ |
H A D | util.c | 75 /* returns leap days since 1970 */ 90 time_t days; local 98 days = daze[(t>>21)&15] + ((t>>25)+10)*365 + leaps((t>>25)+10,((t>>21)&15)-1)+((t>>16)&31)-1; 100 return (((days * 24) + ((t>>11)&31)) * 60 + ((t>>5)&63) + tzoffset) * 60 + 2*(t&31); 106 int days; local 117 days = IS_LEAP_YEAR(1980+y) ? 366 : 365; 118 if (s < days) break; 119 s -= days;
|
/haiku-fatelf/src/system/boot/platform/openfirmware/ |
H A D | real_time_clock.cpp | 52 int days = day; local 55 return (((days * 24 + hour) * 60ULL + minute) * 60ULL + second)
|
/haiku-fatelf/src/kits/network/libbind/nameser/ |
H A D | ns_ttl.c | 54 int secs, mins, hours, days, weeks, x; local 60 days = src % 7; src /= 7; 68 if (days) { 69 T(fmt1(days, 'D', &dst, &dstlen)); 80 if (secs || !(weeks || days || hours || mins)) {
|
/haiku-fatelf/src/bin/ |
H A D | cal.c | 202 int col, row, len, days[MAXDAYS]; local 205 day_array(month, year, days); 213 ascii_day(p, days[row * 7 + col]); 225 int days[12][MAXDAYS]; local 232 day_array(i + 1, year, days[i]); 243 dp = &days[month + which_cal][row * 7]; 260 int days[12][MAXDAYS]; local 267 day_array(i + 1, year, days[i]); 279 dp = &days[month + which_cal][row * 7]; 299 day_array(month, year, days) [all...] |
/haiku-fatelf/src/bin/unzip/ |
H A D | timezone.c | 531 long days = *when / SECSPERDAY; local 536 _tmbuf.tm_wday = (days + EPOCH_WDAY) % 7; 539 while (days >= year_lengths[isleap]) { 540 days -= year_lengths[isleap]; 545 _tmbuf.tm_yday = days; 546 while (days >= mon_lengths[isleap][_tmbuf.tm_mon]) 547 days -= mon_lengths[isleap][_tmbuf.tm_mon++]; 548 _tmbuf.tm_mday = days + 1; 743 int years, months, days, hours, minutes, seconds; local 747 days [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/BeManager/ |
H A D | UserProperties.h | 26 uint32 getDays() { return days; } 50 uint32 days; member in class:UserPropertiesView
|
H A D | besure_auth.h | 36 _IMPEXP_BESURE bool setUserDaysToExpire(char *user, uint32 days); 45 _IMPEXP_BESURE bool getUserDaysToExpire(char *user, uint32 *days);
|
H A D | UserProperties.cpp | 38 days = flags = 0; 45 getUserDaysToExpire(user, &days); 101 sprintf(strDays, "%lu", days); 187 DrawString("days");
|
/haiku-fatelf/src/bin/makeudfimage/ |
H A D | Statistics.cpp | 113 // days 114 uint32 days = time % 365; local 115 sprintf(buffer, "%ld day%s", days, days == 1 ? "" : "s");
|
/haiku-fatelf/src/bin/network/tcpdump/ |
H A D | print-chdlc.c | 149 u_int sec,min,hrs,days; local 188 days = hrs / 24; hrs -= days * 24; 189 printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/AuthLib/ |
H A D | besure_auth.h | 36 _IMPEXP_BESURE bool setUserDaysToExpire(char *user, uint32 days); 45 _IMPEXP_BESURE bool getUserDaysToExpire(char *user, uint32 *days);
|
H A D | besure_auth.c | 255 bool setUserDaysToExpire(char *user, uint32 days) argument 264 return SetKeyInt(path, "DaysToExpire", days); 355 bool getUserDaysToExpire(char *user, uint32 *days) argument 359 days = 0; 366 return GetKeyInt(path, "DaysToExpire", (int *) &days);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/BeSure/ |
H A D | besure_auth.h | 36 _IMPEXP_BESURE bool setUserDaysToExpire(char *user, uint32 days); 45 _IMPEXP_BESURE bool getUserDaysToExpire(char *user, uint32 *days);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/MyNetwork/ |
H A D | besure_auth.h | 36 _IMPEXP_BESURE bool setUserDaysToExpire(char *user, uint32 days); 45 _IMPEXP_BESURE bool getUserDaysToExpire(char *user, uint32 *days);
|
/haiku-fatelf/src/apps/webpositive/ |
H A D | BrowsingHistory.h | 87 void SetMaxHistoryItemAge(int32 days);
|
H A D | BrowsingHistory.cpp | 246 BrowsingHistory::SetMaxHistoryItemAge(int32 days) argument 249 if (fMaxHistoryItemAge != days) { 250 fMaxHistoryItemAge = days;
|
/haiku-fatelf/src/bin/sharutils/lib/ |
H A D | strftime.c | 103 static char const* const days[] = variable 390 add_char (days[tm->tm_wday][0]); 391 add_char (days[tm->tm_wday][1]); 392 add_char (days[tm->tm_wday][2]); 396 add_str (&string[length], days[tm->tm_wday], max - length);
|
/haiku-fatelf/src/bin/patch/ |
H A D | maketime.c | 85 /* Number of days in 400 consecutive Gregorian years. */ 98 /* days in year before start of months 0-12 */ 104 /* Yield the number of days in TM's month. */ 169 int days = 0; local 183 days = - ((23 - t->tm_hour) / 24); 184 if ((t->tm_mday += days) <= 0) 200 days = t->tm_hour / 24; 201 if (month_days (t) < (t->tm_mday += days)) 213 t->tm_wday = MOD (t->tm_wday + days, 7);
|
/haiku-fatelf/headers/os/mail/ |
H A D | E-mail.h | 67 // schedule days 98 int32 days; /* see flags above*/ member in struct:__anon448
|
/haiku-fatelf/src/bin/network/ftp/ |
H A D | progressbar.c | 320 int days; local 322 days = remaining / SECSPERDAY; 325 "%d day%s ", days, days == 1 ? "" : "s");
|
/haiku-fatelf/src/system/kernel/ |
H A D | real_time_clock.cpp | 163 uint32 days; local 171 days = tm->tm_mday - 32075 - RTC_EPOCH_JULIAN_DAY 176 return days * RTC_SECONDS_DAY + tm->tm_hour * 3600 + tm->tm_min * 60
|
/haiku-fatelf/src/preferences/time/ |
H A D | DateTimeEdit.cpp | 647 int32 days = fDate.DaysInMonth(); local 648 if (value > days) 651 value = days; 695 int32 days = fDate.DaysInMonth(); local 696 if (value >= 1 && value <= days)
|
/haiku-fatelf/src/add-ons/kernel/file_systems/exfat/ |
H A D | Inode.cpp | 252 /* returns leap days since 1970 */ 272 time_t days = daze[(date>>5)&15] + ((date>>9)+10)*365 + leaps((date>>9)+10,((date>>5)&15)-1)+(date&31)-1; local 274 timespec.tv_sec = ((days * 24 + (time >> 11)) * 60 + ((time>>5)&63) + tzoffset) * 60 + 2*(time&31);
|