/haiku-fatelf/headers/private/shared/ |
H A D | Holiday.h | 23 static BDate EasterSunday(int32 year); 24 static BDate AscensionDay(int32 year); 25 static BDate PentecostDay(int32 year); 30 Returns the date for easter sunday for the \c year. 33 BEasterHoliday::EasterSunday(int32 year) argument 36 int32 gold = year % 19; 37 int32 century = year / 100; 43 int32 day = i - ((year + (int32)(year / 4) + i + 2 - century 47 date.SetDate(year, 58 AscensionDay(int32 year) argument 70 PentecostDay(int32 year) argument [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/definitions/time_h/ |
H A D | 2-1.c | 16 int week, year, dst; local 25 year = t.tm_yday;
|
/haiku-fatelf/src/bin/ |
H A D | cal.c | 90 /* leap year -- account for gregorian reformation in 1752 */ 99 /* number of leap years between year 1 and this year, not inclusive */ 123 int ch, month, year, yflag, i; local 145 year = 0; 154 if ((year = atoi(*argv)) < 1 || year > 9999) { 155 (void)fprintf(stderr,"illegal year value: use 1-9999\n"); 162 year = local_time->tm_year + 1900; 183 monthly(month, year); [all...] |
/haiku-fatelf/src/bin/sharutils/doc/ |
H A D | mdate-sh | 40 # Find the month. Next argument is day, followed by the year or time. 64 # the time of day or the year. 66 *:*) set `date`; year=$7 81 # For the first six month of the year the time notation can also 82 # be used for file modified in the last year. 85 year=`expr year - 1` 88 *) year=$3;; 92 echo $day $month $year
|
/haiku-fatelf/src/preferences/time/ |
H A D | BaseView.cpp | 79 int32 year; local 80 if (message->FindInt32("year", &year) != B_OK) 81 year = date.Year(); 87 if (year >= 1970 && year <= 2037) { 88 date.SetDate(year, month, day); 104 fMessage.AddInt32("year", date.Year());
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/udf/r5/ |
H A D | Utils.cpp | 55 DEBUG_INIT_ETC(NULL, ("timestamp: (tnt: 0x%x, type: %d, timezone: %d = 0x%x, year: %d, " 58 timestamp.timezone(),timestamp.year(), 63 if (timestamp.year() >= 1970) { 66 int year = timestamp.year(); local 82 int previousLeapYears = (year - 1968) / 4; 83 bool isLeapYear = (year - 1968) % 4 == 0; 88 result = (year - 1970) * 365 + previousLeapYears;
|
/haiku-fatelf/src/bin/diffutils/config/ |
H A D | mdate-sh | 46 # Find the month. Next argument is day, followed by the year or time. 70 # the time of day or the year. 72 *:*) set `date`; eval year=\$$# 87 # For the first six month of the year the time notation can also 88 # be used for files modified in the last year. 91 year=`expr $year - 1` 93 *) year=$3;; 97 echo $day $month $year
|
/haiku-fatelf/src/add-ons/kernel/file_systems/udf/ |
H A D | Utils.cpp | 94 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;
|
/haiku-fatelf/src/system/boot/platform/openfirmware/ |
H A D | real_time_clock.cpp | 48 int second, minute, hour, day, month, year; local 49 if (of_call_method(sHandle, "get-time", 0, 6, &year, &month, &day,
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | mktime.c | 92 /* Nonzero if YEAR is a leap year (every 4 years, 94 #define __isleap(year) \ 95 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 133 ydhms_tm_diff (year, yday, hour, min, sec, tp) 134 int year, yday, hour, min, sec; 137 /* Compute intervening leap days correctly even if year is negative. 142 int a4 = (year >> 2) + (TM_YEAR_BASE >> 2) - ! (year 209 int year = year_requested + mon_years; local [all...] |
/haiku-fatelf/src/bin/gawk/missing_d/ |
H A D | mktime.c | 92 /* Nonzero if YEAR is a leap year (every 4 years, 94 #define __isleap(year) \ 95 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 133 ydhms_tm_diff (year, yday, hour, min, sec, tp) 134 int year, yday, hour, min, sec; 137 /* Compute intervening leap days correctly even if year is negative. 142 int a4 = (year >> 2) + (TM_YEAR_BASE >> 2) - ! (year 209 int year = year_requested + mon_years; local [all...] |
/haiku-fatelf/src/bin/network/wget/build-aux/ |
H A D | mdate-sh | 132 # $4 = year or time 140 # $3 = year or time 165 # the time of day or the year. 167 *:*) set `date`; eval year=\$$# 182 # For the first six month of the year the time notation can also 183 # be used for files modified in the last year. 186 year=`expr $year - 1` 188 *) year=$3;; 192 echo $day $month $year [all...] |
/haiku-fatelf/src/system/kernel/ |
H A D | real_time_clock.cpp | 157 /*! Converts the \a tm data to seconds. Note that the base year is not 164 int year, month; local 167 year = tm->tm_year + RTC_EPOCH_BASE_YEAR; 172 + 1461 * (year + 4800 + (month - 14) / 12) / 4 174 - 3 * ((year + 4900 + (month - 14) / 12) / 100) / 4; 184 uint32 year, month, day, l, n; local 191 year = 4000 * (l + 1) / 1461001; 192 l = l - 1461 * year / 4 + 31; 197 year = 100 * (n - 49) + year [all...] |
/haiku-fatelf/src/apps/webpositive/support/ |
H A D | DateTime.cpp | 472 Constructs a BDate object with \c year \c month and \c day. 474 Please note that a date before 1.1.4713 BC, a date with year 0 and a date 477 that every passed year will be interpreted as is. 480 BDate::BDate(int32 year, int32 month, int32 day) argument 482 _SetDate(year, month, day); 498 archive->FindInt32("year", &fYear); 525 ret = into->AddInt32("year", fYear); 535 Please note that a date before 1.1.4713 BC, a date with year 0 and a date 559 BDate::IsValid(int32 year, int32 month, int32 day) const argument 561 // no year 628 SetDate(int32 year, int32 month, int32 day) argument 641 GetDate(int32* year, int32* month, int32* day) argument 1065 int32 year = d - 4800 + (m / 10); local 1135 _SetDate(int32 year, int32 month, int32 day) argument 1153 _DaysInMonth(int32 year, int32 month) const argument 1169 int32 year = _year; local [all...] |
H A D | DateTime.h | 94 BDate(int32 year, int32 month, int32 day); 102 bool IsValid(int32 year, int32 month, 110 bool SetDate(int32 year, int32 month, int32 day); 111 void GetDate(int32* year, int32* month, int32* day); 126 bool IsLeapYear(int32 year) const; 156 int32 _DaysInMonth(int32 year, int32 month) const; 157 bool _SetDate(int32 year, int32 month, int32 day); 158 int32 _DateToJulianDay(int32 year, int32 month,
|
/haiku-fatelf/src/kits/support/ |
H A D | DateTime.cpp | 477 Constructs a BDate object with \c year \c month and \c day. 479 Please note that a date before 1.1.4713 BC, a date with year 0 and a date 482 that every passed year will be interpreted as is. 485 BDate::BDate(int32 year, int32 month, int32 day) argument 487 _SetDate(year, month, day); 503 archive->FindInt32("year", &fYear); 530 ret = into->AddInt32("year", fYear); 540 Please note that a date before 1.1.4713 BC, a date with year 0 and a date 564 BDate::IsValid(int32 year, int32 month, int32 day) argument 566 // no year 636 SetDate(int32 year, int32 month, int32 day) argument 649 GetDate(int32* year, int32* month, int32* day) const argument 876 IsLeapYear(int32 year) argument 1084 int32 year = d - 4800 + (m / 10); local 1156 _SetDate(int32 year, int32 month, int32 day) argument 1174 _DaysInMonth(int32 year, int32 month) argument 1190 int32 year = _year; local [all...] |
/haiku-fatelf/headers/os/support/ |
H A D | DateTime.h | 94 BDate(int32 year, int32 month, int32 day); 102 static bool IsValid(int32 year, int32 month, 110 bool SetDate(int32 year, int32 month, int32 day); 111 void GetDate(int32* year, int32* month, 128 static bool IsLeapYear(int32 year); 158 static int32 _DaysInMonth(int32 year, int32 month); 159 bool _SetDate(int32 year, int32 month, int32 day); 160 static int32 _DateToJulianDay(int32 year, int32 month,
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | getdate.y | 142 /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ 143 long int year; 179 /* Gregorian year, month, day, hour, minutes, seconds, and nanoseconds. */ 180 textint year; 187 /* Relative year, month, day, hour, minutes, seconds, and nanoseconds. */ 215 if (pc->dates_seen && ! pc->year.digits 217 pc->year = text_int; 225 pc->year.value = text_int.value / 10000; 226 pc->year.digits = text_int.digits - 4; 258 pc->rel.year [all...] |
H A D | posixtm.c | 61 year (struct tm *tm, const int *digit_pair, size_t n, unsigned int syntax_bits) function 67 /* Deduce the century based on the year. 89 /* Use current year. */ 141 if (year (tm, p, len - 4, syntax_bits)) 154 /* Handle any trailing year. */ 157 if (year (tm, p, len, syntax_bits))
|
H A D | mktime.c | 120 /* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */ 122 leapyear (long int year) argument 127 ((year & 3) == 0 128 && (year % 100 != 0 129 || ((year / 100) & 3) == (- (TM_YEAR_BASE / 100) & 3))); 178 /* Compute intervening leap days correctly even if year is negative. 207 guess_time_tm (long int year, long int yday, int hour, int min, int sec, argument 212 time_t d = ydhms_diff (year, yday, hour, min, sec, 307 /* Ensure that mon is in range, and set year accordingly. */ 312 long int year local [all...] |
/haiku-fatelf/src/servers/app/ |
H A D | ScreenConfigurations.cpp | 84 if (configuration->info.produced.year == info->produced.year 180 screenSettings.AddInt32("produced year", 181 configuration->info.produced.year); 223 int32 week, year; local 229 && stored.FindInt32("produced year", &year) == B_OK) { 238 configuration->info.produced.year = year;
|
/haiku-fatelf/src/system/kernel/arch/m68k/ |
H A D | arch_real_time_clock.cpp | 24 uint8 year; member in struct:__anon5325 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-fatelf/src/system/kernel/arch/x86/ |
H A D | arch_real_time_clock.cpp | 26 uint8 year; member in struct:__anon5331 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-fatelf/src/bin/network/wget/src/ |
H A D | ftp-ls.c | 102 int year, month, day; /* for time analysis */ local 184 year = hour = min = sec = 0; /* Silence the compiler. */ 246 /* This ought to be either the time, or the year. Let's 249 If we have a number x, it's a year. If we have x:y, 252 year = 0; 257 /* Suppose it's year. */ 259 year = (*tok - '0') + 10 * year; 263 hour = year; 264 year 430 int year, month, day; /* for time analysis */ local [all...] |
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | mktime.c | 117 /* Return 1 if YEAR + TM_YEAR_BASE is a leap year. */ 119 leapyear (long int year) argument 124 ((year & 3) == 0 125 && (year % 100 != 0 126 || ((year / 100) & 3) == (- (TM_YEAR_BASE / 100) & 3))); 171 /* Compute intervening leap days correctly even if year is negative. 200 guess_time_tm (long int year, long int yday, int hour, int min, int sec, argument 205 time_t d = ydhms_diff (year, yday, hour, min, sec, 298 /* Ensure that mon is in range, and set year accordingly. */ 303 long int year local [all...] |