/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...] |
buddhcal.cpp | 66 // EXTENDED_YEAR in BuddhistCalendar is a Gregorian year. 68 int32_t year; local 70 year = internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch); 72 // extended year is a gregorian year, where 1 = 1AD, 0 = 1BC, -1 = 2BC, etc 73 year = internalGet(UCAL_YEAR, kGregorianEpoch - kBuddhistEraStart) 76 return year; 109 int32_t year = internalGet(UCAL_YEAR); 112 year = 1-year; [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...] |
japancal.h | 34 * except for the year and era. The ascension of each emperor to the throne 36 * year of ascension as year 1. 38 * Note that in the year of an imperial ascension, there are two possible sets 39 * of year and era values: that for the old era and for the new. For example, a 41 * of that year were in the Showa era, e.g. "January 6, 64 Showa", while the rest 42 * of the year was in the Heisei era, e.g. "January 7, 1 Heisei". This class 105 * Return the extended year defined by the current fields. In the 106 * Japanese calendar case, this is equal to the equivalent extended Gregorian year. 192 * Called by computeJulianDay. Returns the default month (0-based) for the year, [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...] |
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...] |
hebrwcal.h | 38 * solar year (approximately 365.24 days) is not an even multiple of 41 * interesting, the start of a year can be delayed by up to three days 43 * to prevent certain illegal year lengths. Finally, the lengths of certain 44 * months can vary depending on the number of days in the year. 48 * not come at the end of the year, calculations involving 91 * Constant for Tishri, the 1st month of the Hebrew year. 95 * Constant for Heshvan, the 2nd month of the Hebrew year. 99 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 109 * Constant for Shevat, the 5th month of the Hebrew year. [all...] |
ethpccal.h | 42 * Constant for መስከረም, the 1st month of the Ethiopic year. 47 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 52 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 57 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 62 * Constant for ጥር, the 5th month of the Ethiopic year. 67 * Constant for የካቲት, the 6th month of the Ethiopic year. 72 * Constant for መጋቢት, the 7th month of the Ethiopic year. 77 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 82 * Constant for ግንቦት, the 9th month of the Ethiopic year. 87 * Constant for ሰኔ, the 10th month of the Ethiopic year. [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...] |
buddhcal.h | 37 * except for the year and era. Years are numbered since the birth of the 136 * Return the extended year defined by the current fields. This will 137 * use the UCAL_EXTENDED_YEAR field or the UCAL_YEAR and supra-year fields (such 140 * @return the extended year 160 * given month in the given extended year. Subclasses should override 162 * @param eyear the extended year 165 * the given year, otherwise, compute the day before the first day of 168 * day of the given month and year 188 * Returns the year in which the default century begins 197 * indicate an uninitialized state. Once the system default century date and year [all...] |
persncal.h | 35 * The Persian calendar is strictly solar, and thus a Persian year has twelve 36 * solar months. A Persian year is about 365 days long, except in leap years 59 * Constant for Farvardin, the 1st month of the Persian year. 65 * Constant for Ordibehesht, the 2nd month of the Persian year. 71 * Constant for Khordad, the 3rd month of the Persian year. 77 * Constant for Tir, the 4th month of the Persian year. 83 * Constant for Mordad, the 5th month of the Persian year. 89 * Constant for Shahrivar, the 6th month of the Persian year. 95 * Constant for Mehr, the 7th month of the Persian year. 101 * Constant for Aban, the 8th month of the Persian year. [all...] |
japancal.cpp | 36 int16_t year; member in struct:__anon2209 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...] |
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 42 private static final String YEAR = "year"; 63 * @param year The year that was set. 68 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); 74 * @param year The initial year of the dialog. 80 int year, 84 callBack, year, monthOfYear, dayOfMonth); 91 * @param year The initial year of the dialog 179 int year = savedInstanceState.getInt(YEAR); local [all...] |
/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/bluetooth/glib/tests/ |
testgdate.c | 41 d->year, 56 /* Try to get all the leap year cases. */ 87 TEST("January 1, Year 1 created and valid", g_date_valid(d)); 91 TEST("January 1, Year 1 is Julian date 1", j == 1); 95 TEST("Returned year is 1", g_date_get_year(d) == 1); 101 TEST("Bad year is invalid", !g_date_valid_year(G_DATE_BAD_YEAR)); 104 TEST("Year 2000 is a leap year", g_date_is_leap_year(2000)); 105 TEST("Year 1999 is not a leap year", !g_date_is_leap_year(1999)) [all...] |
date-test.c | 47 /* Try to get all the leap year cases. */ 80 TEST("January 1, Year 1 created and valid", g_date_valid(d)); 84 TEST("January 1, Year 1 is Julian date 1", j == 1); 88 TEST("Returned year is 1", g_date_get_year(d) == 1); 94 TEST("Bad year is invalid", !g_date_valid_year(G_DATE_BAD_YEAR)); 97 TEST("Year 2000 is a leap year", g_date_is_leap_year(2000)); 98 TEST("Year 1999 is not a leap year", !g_date_is_leap_year(1999)); 99 TEST("Year 1996 is a leap year", g_date_is_leap_year(1996)) [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/v8/src/ |
date.js | 63 function DaysInYear(year) { 64 if (year % 4 != 0) return 365; 65 if ((year % 100 == 0) && (year % 400 != 0)) return 365; 70 function DayFromYear(year) { 71 return 365 * (year-1970) 72 + FLOOR((year-1969)/4) 73 - FLOOR((year-1901)/100) 74 + FLOOR((year-1601)/400); 78 function TimeFromYear(year) { [all...] |
/external/bluetooth/glib/docs/reference/glib/tmpl/ |
date.sgml | 9 The #GDate data structure represents a day between January 1, Year 1, 11 to the year 65535 or so, but g_date_set_parse() only parses up to the 12 year 8000 or so - just count on "a few thousand"). #GDate is meant to 23 can keep both a Julian and day-month-year representation of the date, 50 struct.</emphasis> Often only the day-month-year or only the Julian 136 Represents a day between January 1, Year 1 and a few thousand years in 144 month, and year. 149 @dmy: this is set if @day, @month and @year are valid 150 @day: the day of the day-month-year representation of the date, as 152 @month: the day of the day-month-year representation of the date, as [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
GregorianCalendar.java | 42 * the Julian calendar is the leap year rule. The Julian calendar specifies leap 54 * date, leap year rules were applied irregularly, and before 45 BC the Julian 58 * Prior to the institution of the Gregorian calendar, New Year's Day was March 65 * 53. Week 1 for a year is the earliest seven day period starting on 67 * {@code getMinimalDaysInFirstWeek()} days from that year. It thus 70 * Weeks between week 1 of one year and week 1 of the following year are 89 * {@code getFirstDayOfWeek()}. Unlike week 1 of a year, week 1 of a 132 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 771 int year = isSet[YEAR] ? fields[YEAR] : 1970; local 905 int year = 1970; local 925 long year = iyear; local 1167 int year = 1970; local [all...] |
/external/libpng/ |
Y2KINFO | 13 Libpng only has three year fields. One is a 2-byte unsigned integer 18 "png_uint_16 year" in png_time_struct. 37 clock time, which returns (year - 1900), which we properly convert to 38 the full 4-digit year. There is a possibility that applications using 40 function, or that they are incorrectly passing only a 2-digit year 41 instead of "year - 1900" into the png_convert_from_struct_tm() function, 47 integer to hold the year, and can hold years as large as 65535.
|
/frameworks/base/media/libdrm/mobile1/include/parser/ |
parser_rel.h | 43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\ 44 date = year * 10000 + mon * 100 + day;\ 54 int32_t date; /**< year * 10000 + mon *100 + day */ 82 * Input year and month, return how many days that month have 83 * \param year (in)Input the year 89 int32_t drm_monthDays(int32_t year, int32_t month); 93 * \param year year of the date 103 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, int32_t sec) [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`;
|
/external/icu4c/test/testdata/ |
calendar.txt | 26 // "0/1/1912/june/4 == gregorian year=1912, ERA=AD, same month, same day 29 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw 30 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg 34 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw 35 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg 39 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw 40 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg 46 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw 47 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg 55 "YEAR=1964,MONTH=8,DATE=4", // gre [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...] |