| /third_party/typescript/tests/baselines/reference/ |
| D | externModule.types | 21 constructor(year: number, month: number); 22 >year : number 25 constructor(year: number, month: number, date: number); 26 >year : number 30 constructor(year: number, month: number, date: number, hours: number); 31 >year : number 36 constructor(year: number, month: number, date: number, hours: number, minutes: number); 37 >year : number 43 …constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: nu… 44 >year : number [all …]
|
| D | externModule.symbols | 18 constructor(year: number, month: number); 19 >year : Symbol(year, Decl(externModule.ts, 10, 17)) 22 constructor(year: number, month: number, date: number); 23 >year : Symbol(year, Decl(externModule.ts, 11, 17)) 27 constructor(year: number, month: number, date: number, hours: number); 28 >year : Symbol(year, Decl(externModule.ts, 12, 17)) 33 constructor(year: number, month: number, date: number, hours: number, minutes: number); 34 >year : Symbol(year, Decl(externModule.ts, 13, 17)) 40 …constructor(year: number, month: number, date: number, hours: number, minutes: number, seconds: nu… 41 >year : Symbol(year, Decl(externModule.ts, 14, 17)) [all …]
|
| /third_party/protobuf/src/google/protobuf/stubs/ |
| D | time.cc | 27 // Count the seconds from the given year (start at Jan 1, 00:00) to 100 years 29 int64 SecondsPer100Years(int year) { in SecondsPer100Years() argument 30 if (year % 400 == 0 || year % 400 > 300) { in SecondsPer100Years() 37 // Count the seconds from the given year (start at Jan 1, 00:00) to 4 years 39 int64 SecondsPer4Years(int year) { in SecondsPer4Years() argument 40 if ((year % 100 == 0 || year % 100 > 96) && in SecondsPer4Years() 41 !(year % 400 == 0 || year % 400 > 396)) { in SecondsPer4Years() 50 bool IsLeapYear(int year) { in IsLeapYear() argument 51 return year % 400 == 0 || (year % 4 == 0 && year % 100 != 0); in IsLeapYear() 54 int64 SecondsPerYear(int year) { in SecondsPerYear() argument [all …]
|
| /third_party/python/Doc/library/ |
| D | calendar.rst | 27 interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is 50 .. method:: itermonthdates(year, month) 52 Return an iterator for the month *month* (1--12) in the year *year*. This 58 .. method:: itermonthdays(year, month) 60 Return an iterator for the month *month* in the year *year* similar to 66 .. method:: itermonthdays2(year, month) 68 Return an iterator for the month *month* in the year *year* similar to 74 .. method:: itermonthdays3(year, month) 76 Return an iterator for the month *month* in the year *year* similar to 78 range. Days returned will be tuples consisting of a year, a month and a day [all …]
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
| D | IndianCalendar.java | 48 * So When its a leap year in Gregorian calendar then Chaitra has 31 days. 51 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). 73 * Constant for Chaitra, the 1st month of the Indian year. 78 * Constant for Vaisakha, the 2nd month of the Indian year. 83 * Constant for Jyaistha, the 3rd month of the Indian year. 88 * Constant for Asadha, the 4th month of the Indian year. 93 * Constant for Sravana, the 5th month of the Indian year. 98 * Constant for Bhadra, the 6th month of the Indian year. 103 * Constant for Asvina, the 7th month of the Indian year. 108 * Constant for Kartika, the 8th month of the Indian year. [all …]
|
| D | CopticCalendar.java | 32 * the 1st month of the Coptic year. 38 * the 2nd month of the Coptic year. 44 * the 3rd month of the Coptic year. 50 * the 4th month of the Coptic year. 56 * the 5th month of the Coptic year. 62 * the 6th month of the Coptic year. 68 * the 7th month of the Coptic year. 74 * the 8th month of the Coptic year. 80 * the 9th month of the Coptic year. 86 * the 10th month of the Coptic year. [all …]
|
| D | HebrewCalendar.java | 26 * solar year (approximately 365.24 days) is not an even multiple of 29 * interesting, the start of a year can be delayed by up to three days 31 * to prevent certain illegal year lengths. Finally, the lengths of certain 32 * months can vary depending on the number of days in the year. 36 * not come at the end of the year, calculations involving 86 * Constant for Tishri, the 1st month of the Hebrew year. 91 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 101 * Constant for Tevet, the 4th month of the Hebrew year. 106 * Constant for Shevat, the 5th month of the Hebrew year. [all …]
|
| D | EthiopicCalendar.java | 34 * Constant for መስከረም, the 1st month of the Ethiopic year. 39 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 44 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 49 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 54 * Constant for ጥር, the 5th month of the Ethiopic year. 59 * Constant for የካቲት, the 6th month of the Ethiopic year. 64 * Constant for መጋቢት, the 7th month of the Ethiopic year. 69 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 74 * Constant for ግንቦት, the 9th month of the Ethiopic year. 79 * Constant for ሰኔ, the 10th month of the Ethiopic year. [all …]
|
| D | GregorianCalendar.java | 34 * and the Julian calendar is the leap year rule. The Julian calendar specifies 45 * leap year rules were applied irregularly, and before 45 BC the Julian 48 * <p>Prior to the institution of the Gregorian calendar, New Year's Day was 54 * 53. Week 1 for a year is the earliest seven day period starting on 56 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 59 * Weeks between week 1 of one year and week 1 of the following year are 76 * week 1 of a year, week 1 of a month may be shorter than 7 days, need 117 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 142 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 185 * epochs which are used are January 1, year 1 (Gregorian), which is day 1 [all …]
|
| /third_party/icu/icu4c/source/test/testdata/ |
| D | format.txt | 29 …// or a calendar spec ERA=0,YEAR=1, etc.. applied to the calendar type specified by the loc… 39 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0", 46 "ERA=1,YEAR=98,MONTH=0,DATE=24", 54 "ERA=0,YEAR=2,MONTH=0,DATE=24", 96 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 104 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 119 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 127 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 151 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", 159 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0", [all …]
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
| D | CopticCalendar.java | 32 * the 1st month of the Coptic year. 39 * the 2nd month of the Coptic year. 46 * the 3rd month of the Coptic year. 53 * the 4th month of the Coptic year. 60 * the 5th month of the Coptic year. 67 * the 6th month of the Coptic year. 74 * the 7th month of the Coptic year. 81 * the 8th month of the Coptic year. 88 * the 9th month of the Coptic year. 95 * the 10th month of the Coptic year. [all …]
|
| D | HebrewCalendar.java | 25 * solar year (approximately 365.24 days) is not an even multiple of 28 * interesting, the start of a year can be delayed by up to three days 30 * to prevent certain illegal year lengths. Finally, the lengths of certain 31 * months can vary depending on the number of days in the year. 35 * not come at the end of the year, calculations involving 86 * Constant for Tishri, the 1st month of the Hebrew year. 92 * Constant for Heshvan, the 2nd month of the Hebrew year. 98 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 110 * Constant for Shevat, the 5th month of the Hebrew year. [all …]
|
| D | GregorianCalendar.java | 33 * and the Julian calendar is the leap year rule. The Julian calendar specifies 44 * leap year rules were applied irregularly, and before 45 BC the Julian 47 * <p>Prior to the institution of the Gregorian calendar, New Year's Day was 53 * 53. Week 1 for a year is the earliest seven day period starting on 55 * <code>getMinimalDaysInFirstWeek()</code> days from that year. It thus 58 * Weeks between week 1 of one year and week 1 of the following year are 75 * week 1 of a year, week 1 of a month may be shorter than 7 days, need 116 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 141 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 185 * epochs which are used are January 1, year 1 (Gregorian), which is day 1 [all …]
|
| D | IndianCalendar.java | 47 * So When its a leap year in Gregorian calendar then Chaitra has 31 days. 50 * Years are counted in the Saka Era, which starts its year 0 in 78AD (by gregorian calendar). 74 * Constant for Chaitra, the 1st month of the Indian year. 80 * Constant for Vaisakha, the 2nd month of the Indian year. 86 * Constant for Jyaistha, the 3rd month of the Indian year. 92 * Constant for Asadha, the 4th month of the Indian year. 98 * Constant for Sravana, the 5th month of the Indian year. 104 * Constant for Bhadra, the 6th month of the Indian year. 110 * Constant for Asvina, the 7th month of the Indian year. 116 * Constant for Kartika, the 8th month of the Indian year. [all …]
|
| D | EthiopicCalendar.java | 34 * Constant for መስከረም, the 1st month of the Ethiopic year. 40 * Constant for ጥቅምት, the 2nd month of the Ethiopic year. 46 * Constant for ኅዳር, the 3rd month of the Ethiopic year. 52 * Constant for ታኅሣሥ, the 4th month of the Ethiopic year. 58 * Constant for ጥር, the 5th month of the Ethiopic year. 64 * Constant for የካቲት, the 6th month of the Ethiopic year. 70 * Constant for መጋቢት, the 7th month of the Ethiopic year. 76 * Constant for ሚያዝያ, the 8th month of the Ethiopic year. 82 * Constant for ግንቦት, the 9th month of the Ethiopic year. 88 * Constant for ሰኔ, the 10th month of the Ethiopic year. [all …]
|
| D | AnnualTimeZoneRule.java | 27 * The constant representing the maximum year used for designating a rule is permanent. 47 * @param startYear The first year when this rule takes effect. 48 * @param endYear The last year when this rule takes effect. If this 74 * Gets the first year when this rule takes effect. 76 * @return The start year of this rule. The year is in Gregorian calendar 86 * Gets the end year when this rule takes effect. 88 * @return The end year of this rule (inclusive). The year is in Gregorian calendar 98 * Gets the time when this rule takes effect in the given year. 100 * @param year The Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 106 * @return The time when this rule takes effect in the year, or [all …]
|
| /third_party/icu/icu4c/source/i18n/ |
| D | gregoimp.h | 106 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 151 * Return true if the given year is a leap year. 152 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 153 * @return true if the year is a leap year 155 static inline UBool isLeapYear(int32_t year); 159 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 163 static inline int8_t monthLength(int32_t year, int32_t month); 167 * @param y the extended year 174 * Convert a year, month, and day-of-month, given in the proleptic 176 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. [all …]
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| D | gregoimp.h | 106 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 151 * Return true if the given year is a leap year. 152 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 153 * @return true if the year is a leap year 155 static inline UBool isLeapYear(int32_t year); 159 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 163 static inline int8_t monthLength(int32_t year, int32_t month); 167 * @param y the extended year 174 * Convert a year, month, and day-of-month, given in the proleptic 176 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. [all …]
|
| /third_party/node/deps/icu-small/source/i18n/ |
| D | gregoimp.h | 106 #define kJan1_1JulianDay 1721426 // January 1, year 1 (Gregorian) 151 * Return true if the given year is a leap year. 152 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 153 * @return true if the year is a leap year 155 static inline UBool isLeapYear(int32_t year); 159 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 163 static inline int8_t monthLength(int32_t year, int32_t month); 167 * @param y the extended year 174 * Convert a year, month, and day-of-month, given in the proleptic 176 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. [all …]
|
| D | hebrwcal.h | 40 * solar year (approximately 365.24 days) is not an even multiple of 43 * interesting, the start of a year can be delayed by up to three days 45 * to prevent certain illegal year lengths. Finally, the lengths of certain 46 * months can vary depending on the number of days in the year. 50 * not come at the end of the year, calculations involving 93 * Constant for Tishri, the 1st month of the Hebrew year. 97 * Constant for Heshvan, the 2nd month of the Hebrew year. 101 * Constant for Kislev, the 3rd month of the Hebrew year. 106 * Constant for Tevet, the 4th month of the Hebrew year. 111 * Constant for Shevat, the 5th month of the Hebrew year. [all …]
|
| /third_party/python/Lib/ |
| D | calendar.py | 102 def isleap(year): argument 104 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) 115 def weekday(year, month, day): argument 116 """Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).""" 117 if not datetime.MINYEAR <= year <= datetime.MAXYEAR: 118 year = 2000 + year % 400 119 return datetime.date(year, month, day).weekday() 122 def monthrange(year, month): argument 124 year, month.""" 127 day1 = weekday(year, month, 1) [all …]
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
| D | EraRules.java | 144 * @return An int array including values of year, month, day of month in this order. 145 * When an era has no start date, the result will be January 1st in year 156 * Gets start year of an era 158 * @return The first year of an era. When a era has no start date, minimum integer 170 * Returns era index for the specified year/month/day. 171 * @param year Year 176 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument 178 …throw new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day… in getEraIndex() 185 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex() 194 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex() [all …]
|
| D | Grego.java | 58 * Return true if the given year is a leap year. 59 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 60 * @return true if the year is a leap year 62 public static final boolean isLeapYear(int year) { in isLeapYear() argument 63 // year&0x3 == year%4 in isLeapYear() 64 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear() 69 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 73 public static final int monthLength(int year, int month) { in monthLength() argument 74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength() 79 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. [all …]
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
| D | EraRules.java | 146 * @return An int array including values of year, month, day of month in this order. 147 * When an era has no start date, the result will be January 1st in year 158 * Gets start year of an era 160 * @return The first year of an era. When a era has no start date, minimum integer 172 * Returns era index for the specified year/month/day. 173 * @param year Year 178 public int getEraIndex(int year, int month, int day) { in getEraIndex() argument 180 …throw new IllegalArgumentException("Illegal date - year:" + year + "month:" + month + "day:" + day… in getEraIndex() 187 if (compareEncodedDateWithYMD(startDates[getCurrentEraIndex()], year, month, day) <= 0) { in getEraIndex() 196 if (compareEncodedDateWithYMD(startDates[i], year, month, day) <= 0) { in getEraIndex() [all …]
|
| D | Grego.java | 60 * Return true if the given year is a leap year. 61 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 62 * @return true if the year is a leap year 64 public static final boolean isLeapYear(int year) { in isLeapYear() argument 65 // year&0x3 == year%4 in isLeapYear() 66 return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0)); in isLeapYear() 71 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. 75 public static final int monthLength(int year, int month) { in monthLength() argument 76 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; in monthLength() 81 * @param year Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc. [all …]
|