HomeSort by relevance Sort by last modified time
    Searched refs:year (Results 1 - 25 of 385) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu4c/i18n/
persncal.cpp 26 jalali_to_julian(int year, int month, int day)
31 year = year -475+2820;
34 daysNo=(year/2820)*1029983;
35 year=year % 2820;
37 daysNo+=(year/128)* 46751;
38 if((year/128)>21)
41 year=(year%128)+128
89 int year=0, month=0, day=0,scalarDays=0; local
330 int32_t year; local
    [all...]
hebrwcal.cpp 41 { -5000000, -5000000, 5000000, 5000000}, // YEAR
68 * Due to the rules for postponing the start of the year to avoid having
69 * certain holidays fall on the sabbath, the year can end up being three
90 * The cumulative # of days to the end of each month in a non-leap year
114 * The cumulative # of days to the end of each month in a leap year
225 int32_t year = get(UCAL_YEAR, status); local
231 if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
238 ++year;
245 if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
252 --year;
317 int32_t year = get(UCAL_YEAR, status); local
560 int32_t year = (int32_t)( ((19. * m + 234.) \/ 235.) + 1.); \/\/ Years (approx) local
612 int32_t year; local
    [all...]
japancal.cpp 36 int16_t year; member in struct:__anon5994
40 // Year Month Day
333 if(eyear == kEraInfo[era].year) {
334 // Yes, we're in the first year of this era.
346 if(eyear == kEraInfo[era].year) {
363 // EXTENDED_YEAR in JapaneseCalendar is a Gregorian year
365 int32_t year; local
369 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch);
371 // Subtract one because year starts at 1
372 year = internalGet(UCAL_YEAR) + kEraInfo[internalGetEra()].year - 1
382 int32_t year = internalGet(UCAL_EXTENDED_YEAR); \/\/ Gregorian year local
    [all...]
indiancal.cpp 61 { -5000000, -5000000, 5000000, 5000000}, // YEAR
94 * Determine whether the given gregorian year is a Leap year
96 static UBool isGregorianLeap(int32_t year)
98 return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));
108 * @param eyear The year in Saka Era
128 * Return the number of days in the given Indian year
130 * @param eyear The year in Saka Era
163 int32_t year, month, day; local
266 int32_t year; local
    [all...]
gregoimp.h 93 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian)
138 * Return TRUE if the given year is a leap year.
139 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
140 * @return TRUE if the year is a leap year
142 static inline UBool isLeapYear(int32_t year);
146 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc
    [all...]
cecal.cpp 21 { 1, 1, 5000000, 5000000}, // YEAR
110 CECalendar::ceToJD(int32_t year, int32_t month, int32_t date, int32_t jdEpochOffset)
114 year += month/13;
118 year += month/13 - 1;
123 + 365 * year // number of days from years
124 + ClockMath::floorDivide(year, 4) // extra day of leap year
131 CECalendar::jdToCE(int32_t julianDay, int32_t jdEpochOffset, int32_t& year, int32_t& month, int32_t& day)
133 int32_t c4; // number of 4 year cycle (1461 days)
134 int32_t r4; // remainder of 4 year cycle, always positiv
    [all...]
islamcal.cpp 148 { 1, 1, 5000000, 5000000}, // YEAR
184 * Determine whether a year is a leap year in the Islamic civil calendar
186 UBool IslamicCalendar::civilLeapYear(int32_t year)
188 return (14 + 11 * year) % 30 < 11;
192 * Return the day # on which the given year starts. Days are counted
195 int32_t IslamicCalendar::yearStart(int32_t year) {
197 return (year-1)*354 + ClockMath::floorDivide((3+11*year),30);
199 return trueMonthStart(12*(year-1))
368 int32_t year; local
394 int32_t year, month, dayOfMonth, dayOfYear; local
    [all...]
taiwncal.cpp 66 // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year
68 int32_t year = kGregorianEpoch; local
72 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch);
76 year = internalGet(UCAL_YEAR, 1) + kTaiwanEraStart;
78 year = 1 - internalGet(UCAL_YEAR, 1) + kTaiwanEraStart;
81 return year;
116 int32_t year = internalGet(UCAL_YEAR);
119 year = 1-year;
127 year = year - kTaiwanEraStart
    [all...]
  /libcore/luni/src/main/java/java/util/
Grego.java 56 * Return true if the given year is a leap year.
57 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
58 * @return true if the year is a leap year
60 public static final boolean isLeapYear(int year) {
61 // year&0x3 == year%4
62 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0));
128 int year = (int)(400 * n400 + 100 * n100 + 4 * n4 + n1); local
    [all...]
  /external/llvm/utils/
parseNLT.pl 13 $year = $3;
23 { print "\n$day $mon $year $prefix/$output"; }
34 { print "\n$day $mon $year $prefix/$output"; $output = ""; }
importNLT.pl 25 ($day, $mon, $year, $prog, $gccas, $bc, $llccompile, $llcbetacompile, $jitcompile,
30 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'gccas', $gccas)") || die DBI->errstr;
35 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'bytecode', $bc)") || die DBI->errstr;
40 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-compile', $llccompile)") || die DBI->errstr;
45 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-beta-compile', $llcbetacompile)") || die DBI->errstr;
50 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'jit-compile', $jitcompile)") || die DBI->errstr;
55 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'machine-code', $mc)") || die DBI->errstr;
60 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'gcc', $gcc)") || die DBI->errstr;
65 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc', $llc)") || die DBI->errstr;
70 ('$prog', STR_TO_DATE('$day $mon $year', '\%d \%M \%Y'), 'llc-beta', $llcbeta)") || die DBI->errstr
    [all...]
  /packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/datetime/
DateTime.java 34 private final int year; field in class:DateTime
43 this.year = convertToYear(yearString);
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
54 int year = Integer.parseInt(yearString); local
58 if (year >= 0 && year < 50)
59 return 2000 + year;
61 return 1900 + year;
63 return 1900 + year;
65 return year;
    [all...]
  /frameworks/base/core/java/android/app/
DatePickerDialog.java 39 private static final String YEAR = "year";
53 * @param year The year that was set.
58 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
64 * @param year The initial year of the dialog.
70 int year,
73 this(context, 0, callBack, year, monthOfYear, dayOfMonth);
80 * @param year The initial year of the dialog
152 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /external/icu4c/test/compat/
tzone.pl 8 print "Usage: tzone [year month day hour minute]\n";
18 my $year = 0;
26 ($year, $month, $day, $hour, $minute) = @ARGV;
27 print "The date we are using is: $month-$day-$year $hour:$minute.\n";
52 my @result = `./tzdate $year $month $day $hour $minute $USECURRENT`;
  /bionic/libc/tzcode/
asctime.c 38 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year,
47 ** For years that are more than four digits we put extra spaces before the year
49 ** a digit within a year and truncating the year (operating on the assumption
91 char year[INT_STRLEN_MAXIMUM(int) + 2]; local
101 ** Use strftime's %Y to generate the year, to avoid overflow problems
106 (void) strftime(year, sizeof year, "%Y", timeptr);
111 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B),
115 year); local
    [all...]
  /external/icu4c/tools/tzcode/
asctime.c 38 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year,
47 ** For years that are more than four digits we put extra spaces before the year
49 ** a digit within a year and truncating the year (operating on the assumption
91 char year[INT_STRLEN_MAXIMUM(int) + 2]; local
101 ** Use strftime's %Y to generate the year, to avoid overflow problems
106 (void) strftime(year, sizeof year, "%Y", timeptr);
111 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B),
115 year); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/datepicker/
DatePickerDialog.java 19 // This is a fork of the standard Android DatePicker that additionally allows toggling the year
48 private static final String YEAR = "year";
69 * @param year The year that was set or 0 if the user has not specified a year
74 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
80 * @param year The initial year of the dialog
86 int year,
225 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
15.9.4.3.js 26 var TITLE = "Date.UTC( year, month, date, hours, minutes, seconds, ms )";
32 this.year = 0;
41 function utc( year, month, date, hours, minutes, seconds, ms ) {
43 d.year = Number(year);
58 if ( isNaN(d.year) && 0 <= ToInteger(d.year) && d.year <= 99 ) {
59 d.year = 1900 + ToInteger(d.year);
    [all...]
  /frameworks/base/core/java/com/android/internal/http/
HttpDateTime.java 90 int year = 1970; local
97 year = getYear(rfcMatcher.group(3));
105 year = getYear(ansicMatcher.group(4));
112 if (year >= 2038) {
113 year = 2038;
120 month, year);
183 int year = (yearString.charAt(0) - '0') * 10 local
185 if (year >= 70) {
186 return year + 1900;
188 return year + 2000
192 int year = (yearString.charAt(0) - '0') * 100 local
    [all...]
  /external/chromium/net/ftp/
ftp_directory_listing_parser_windows.cc 33 if (!base::StringToInt(date_parts[2], &time_exploded.year))
35 if (time_exploded.year < 0)
37 // If year has only two digits then assume that 00-79 is 2000-2079,
39 if (time_exploded.year < 80)
40 time_exploded.year += 2000;
41 else if (time_exploded.year < 100)
42 time_exploded.year += 1900;
ftp_directory_listing_parser_unittest.h 24 int year; member in struct:net::FtpDirectoryListingParserTest::SingleLineTestData
54 EXPECT_EQ(test_case.year, time_exploded.year);
65 mock_current_time_exploded.year = 1994;
  /bionic/libc/bionic/
time64.c 72 typedef int64_t Year;
103 static const Year years_in_gregorian_cycle = 400;
107 /* Year range we can trust the time funcitons with */
111 /* 28 year Julian calendar cycle */
114 /* Year cycle from MAX_SAFE_YEAR down. */
125 /* Year cycle from MIN_SAFE_YEAR up */
190 static int is_exception_century(Year year)
192 int is_exception = ((year % 100 == 0) && !(year % 400 == 0))
206 Year year; local
495 Year year = input_date->tm_year + 1900; local
528 Year year = 70; local
    [all...]
  /external/v8/src/
dateparser.cc 42 int year = 0; // Default year is 0 (=> 2000) for KJS compatibility. local
49 year = comp_[0];
56 if (index_ == 3) year = comp_[2];
65 year = comp_[0];
70 year = comp_[1];
74 if (Between(year, 0, 49)) year += 2000;
75 else if (Between(year, 50, 99)) year += 1900
    [all...]
  /external/webkit/Source/JavaScriptCore/wtf/
DateMath.cpp 136 // Day of year for the first day of each month, where index 0 is January, and day 0 is January 1.
143 static inline bool isLeapYear(int year)
145 if (year % 4 != 0)
147 if (year % 400 == 0)
149 if (year % 100 == 0)
154 static inline int daysInYear(int year)
156 return 365 + isLeapYear(year);
159 static inline double daysFrom1970ToYear(int year)
162 // Every fourth year is a leap year. 2004, 2008, and 2012 are leap years
465 int year = msToYear(ms); local
582 long year; local
782 long year = 0; local
1137 const int year = msToYear(ms); local
    [all...]
  /frameworks/base/media/libdrm/mobile1/include/objmng/
drm_time.h 45 uint16_t year; member in struct:__db_system_time_

Completed in 775 milliseconds

1 2 3 4 5 6 7 8 91011>>