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

1 2 3 4 5 6 7 8 91011>>

  /external/chromium/third_party/icu/source/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:__anon3032
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...]
  /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:__anon4051
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...]
  /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...]
  /packages/apps/Email/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...]
  /external/chromium/third_party/icu/source/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`;
  /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`;
  /frameworks/base/core/java/android/app/
DatePickerDialog.java 45 private static final String YEAR = "year";
66 * @param year The year that was set.
71 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth);
77 * @param year The initial year of the dialog.
83 int year,
87 callBack, year, monthOfYear, dayOfMonth);
94 * @param year The initial year of the dialog
182 int year = savedInstanceState.getInt(YEAR); local
    [all...]
  /external/webkit/JavaScriptCore/wtf/
DateMath.cpp 128 // Day of year for the first day of each month, where index 0 is January, and day 0 is January 1.
135 static inline bool isLeapYear(int year)
137 if (year % 4 != 0)
139 if (year % 400 == 0)
141 if (year % 100 == 0)
146 static inline int daysInYear(int year)
148 return 365 + isLeapYear(year);
151 static inline double daysFrom1970ToYear(int year)
154 // Every fourth year is a leap year. 2004, 2008, and 2012 are leap years
457 int year = msToYear(ms); local
618 long year = 0; local
963 const int year = msToYear(ms); local
    [all...]
  /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/chromium/net/ftp/
ftp_directory_listing_parser_ls_unittest.cc 24 now_exploded.year, 5, 15, 18, 11 },
30 now_exploded.year, 10, 12, 13, 37 },
39 now_exploded.year, 7, 1, 2, 15 },
45 now_exploded.year, 12, 8, 15, 54 },
67 now_exploded.year, 11, 17, 17, 8 },
ftp_directory_listing_parser_windows.cc 29 if (!StringToInt(date_parts[2], &time_exploded.year))
31 if (time_exploded.year < 0)
33 // If year has only two digits then assume that 00-79 is 2000-2079,
35 if (time_exploded.year < 80)
36 time_exploded.year += 2000;
37 else if (time_exploded.year < 100)
38 time_exploded.year += 1900;
  /external/chromium/third_party/icu/source/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...]
  /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...]
  /external/webkit/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...]

Completed in 207 milliseconds

1 2 3 4 5 6 7 8 91011>>