Searched refs:year (Results 1 - 25 of 69) sorted by relevance

123

/openjdk7/jdk/src/share/classes/sun/security/pkcs11/wrapper/
H A DCK_DATE.java57 * CK_CHAR year[4];  
71 * CK_CHAR year[4]; - the year ("1900" - "9999")
74 public char[] year; /* the year ("1900" - "9999") */ field in class:CK_DATE
92 public CK_DATE(char[] year, char[] month, char[] day) { argument
93 this.year = year;
112 copy.year = this.year
[all...]
/openjdk7/jdk/test/java/util/TimeZone/
H A DBug6772689.java59 for (int year = BEGIN_YEAR; year < END_YEAR; year++) {
61 cal.set(year, month, 1, 15, 0, 0);
64 Date date = new Date(year - 1900, month, dom);
65 if (date.getYear()+1900 != year
73 year,
/openjdk7/jdk/src/share/classes/sun/util/calendar/
H A DBaseCalendar.java64 // The base Gregorian year of FIXED_DATES[]
162 // Cache for the fixed date of January 1 and year length of the
169 protected final boolean hit(int year) { argument
170 return year == cachedYear;
185 protected void setCache(int year, long jan1, int len) { argument
186 cachedYear = year;
275 int year = bdate.getNormalizedYear();
279 year -= (int)((xm / 12) + 1);
281 bdate.setNormalizedYear(year);
284 year
332 getMonthLength(int year, int month) argument
346 getDayOfYear(int year, int month, int dayOfMonth) argument
364 getFixedDate(int year, int month, int dayOfMonth, BaseCalendar.Date cache) argument
[all...]
H A DJulianCalendar.java80 // Use the year numbering ..., -2, -1, 0, 1, 2, ... for
84 public void setNormalizedYear(int year) { argument
85 if (year <= 0) {
86 setYear(1 - year);
89 setYear(year);
146 * @param jyear normalized Julian year
151 // Look up the one year cache
188 int year;
190 year = (int)(fd / 1461);
192 year
[all...]
H A DCalendarDate.java68 private int year; field in class:CalendarDate
123 return year;
126 public CalendarDate setYear(int year) { argument
127 if (this.year != year) {
128 this.year = year;
136 year += n;
143 * Returns whether the year represented by this
144 * <code>CalendarDate</code> is a leap year
305 setDate(int year, int month, int dayOfMonth) argument
312 addDate(int year, int month, int dayOfMonth) argument
[all...]
H A DLocalGregorianCalendar.java97 void setLocalYear(int year) { argument
98 super.setYear(year);
283 int year = ldate.getNormalizedYear();
291 if (year > sinceYear) {
294 if (year == sinceYear) {
334 // Set Gregorian year with no era
336 ldate.setLocalYear(year);
337 ldate.setNormalizedYear(year);
350 // Set the supposed-to-be-correct Gregorian year first
361 * Returns whether the specified Gregorian year i
368 isLeapYear(Era era, int year) argument
[all...]
/openjdk7/jdk/src/share/classes/java/sql/
H A DDate.java44 * year, month, and day.
48 * @param year the year minus 1900; must be 0 to 8099. (Note that
54 public Date(int year, int month, int day) { argument
55 super(year, month, day);
66 * to exceed the milliseconds representation for the year 8099.
85 * to exceed the milliseconds representation for the year 8099.
130 int year = Integer.parseInt(yyyy);
135 d = new Date(year - 1900, month - 1, day);
154 int year
[all...]
H A DTimestamp.java76 * @param year the year minus 1900
87 public Timestamp(int year, int month, int date, argument
89 super(year, month, date, hour, minute, second);
175 int year = 0;
225 year = Integer.parseInt(yyyy);
263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos);
276 int year = super.getYear() + 1900;
293 if (year < 1000) {
295 yearString = "" + year;
[all...]
/openjdk7/make/scripts/
H A Dupdate_copyright_year.sh44 # This year or supplied year
46 year="$1"
48 year=`date +%Y`
70 # Update the copyright year on a file
80 sed -e "s@\(${copyright} [12][0-9][0-9][0-9],\) [12][0-9][0-9][0-9], ${company}@\1 ${year}, ${company}@" | \
81 sed -e "s@\(${copyright} [12][0-9][0-9][0-9],\) ${company}@\1 ${year}, ${company}@" | \
82 sed -e "s@${copyright} ${year}, ${year}, ${company}@${copyright} ${year},
[all...]
/openjdk7/jdk/make/tools/src/build/tools/javazic/
H A DZoneinfo.java109 * Sets the given year for SimpleTimeZone list output.
111 * @param year the year for which SimpleTimeZone list should be generated
113 static void setYear(int year) { argument
114 setStartYear(year);
115 setEndYear(year);
120 * Sets the start year.
121 * @param year the start year value
122 * @throws IllegalArgumentException if the specified year valu
125 setStartYear(int year) argument
145 setEndYear(int year) argument
[all...]
H A DTime.java134 * @param year the year value
142 static long getLocalTime(int year, Month month, RuleDay day, int save, argument
151 return getLocalTime(year, month, day, t);
158 * @param year the year value
164 static long getLocalTime(int year, Month month, int day, long time) { argument
166 date.setDate(year, month.value(), day);
172 * Equivalent to <code>getLocalTime(year, month, day, (long)time)</code>.
173 * @param year th
179 getLocalTime(int year, Month month, int day, int time) argument
192 getLocalTime(int year, Month month, RuleDay day, long time) argument
206 getLocalTime(int year, Month month, RuleDay day, int time) argument
[all...]
H A DRule.java69 * Gets all rule records that cover the given year.
71 * @param year the year number for which the rule is applicable.
75 List<RuleRec> getRules(int year) { argument
78 if (year >= rec.getFromYear() && year <= rec.getToYear()) {
79 if ((rec.isOdd() && year % 2 == 0) || (rec.isEven() && year % 2 == 1))
96 long t1 = Time.getLocalTime(year, rec1.getMonth(),
98 long t2 = Time.getLocalTime(year, rec
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/jaxp/datatype/
H A DDatatypeFactoryImpl.java83 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
85 * year, month, day, hour, minute, and second.
115 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
117 * year, month, day, hour, minute, and second.
195 * <code>year</code> and <code>month</code> as defined in
208 * @param year Year of <code>Duration</code>.
211 * @return New <code>Duration</code> created using the specified <code>year</code> and <code>month</code>.
214 * <code>Duration</code>: if all of the fields (year, month) are null or
220 final BigInteger year,
225 year,
218 newDurationYearMonth( final boolean isPositive, final BigInteger year, final BigInteger month) argument
249 newDurationYearMonth( final boolean isPositive, final int year, final int month) argument
631 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument
[all...]
H A DXMLGregorianCalendarImpl.java83 * <a name="datetimefield-year"/>
85 * <td> year </td>
91 * {@link #getEon()} is high order year value in billion of years.<br/>
94 * Given that <a href="http://www.w3.org/2001/05/xmlschema-errata#e2-63">XML Schema 1.0 errata</a> states that the year zero
96 * this class allows the year field to be set to zero. Otherwise,
97 * the year field value is handled exactly as described
99 * validation does not allow for the year field to have a value of zero.
206 private int year = DatatypeConstants.FIELD_UNDEFINED; field in class:XMLGregorianCalendarImpl
321 * year date of January 1, 0400 at midnight.</p>
332 400, //year
472 XMLGregorianCalendarImpl( BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone) argument
543 XMLGregorianCalendarImpl( int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone) argument
689 createDateTime( BigInteger year, int month, int day, int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone) argument
727 createDateTime( int year, int month, int day, int hour, int minute, int second) argument
767 createDateTime( int year, int month, int day, int hours, int minutes, int seconds, int milliseconds, int timezone) argument
808 createDate( int year, int month, int day, int timezone) argument
1162 setYear(BigInteger year) argument
1186 setYear(int year) argument
2271 maximumDayInMonthFor(BigInteger year, int month) argument
2286 maximumDayInMonthFor(int year, int month) argument
[all...]
/openjdk7/jdk/src/share/classes/java/util/
H A DGregorianCalendar.java70 * and the Julian calendar is the leap year rule. The Julian calendar specifies
82 * leap year rules were applied irregularly, and before 45 BC the Julian
95 * calendar year is the earliest seven day period starting on {@link
98 * getMinimalDaysInFirstWeek()} days from that year. It thus depends
101 * between week 1 of one year and week 1 of the following year
103 * for year(s) involved in the Julian-Gregorian transition).
117 * <p>A <a name="week_year"><em>week year</em></a> is in sync with a
119 * weeks (inclusive) have the same <em>week year</em> value.
120 * Therefore, the first and last days of a week year ma
633 GregorianCalendar(int year, int month, int dayOfMonth) argument
650 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute) argument
670 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second) argument
691 GregorianCalendar(int year, int month, int dayOfMonth, int hourOfDay, int minute, int second, int millis) argument
801 isLeapYear(int year) argument
2782 getFixedDate(BaseCalendar cal, int year, int fieldMask) argument
3055 monthLength(int month, int year) argument
3097 yearLength(int year) argument
[all...]
H A DDate.java46 * functions. It allowed the interpretation of dates as year, month, day, hour,
60 * in all cases. In UTC, however, about once every year or two there
64 * year 1995 was 61 seconds long, thanks to an added leap second.
95 * year, month, date, hours, minutes, and seconds values, the
98 * <li>A year <i>y</i> is represented by the integer
182 * specified by the <code>year</code>, <code>month</code>, and
185 * @param year the year minus 1900.
190 * replaced by <code>Calendar.set(year + 1900, month, date)</code>
191 * or <code>GregorianCalendar(year
194 Date(int year, int month, int date) argument
217 Date(int year, int month, int date, int hrs, int min) argument
241 Date(int year, int month, int date, int hrs, int min, int sec) argument
315 UTC(int year, int month, int date, int hrs, int min, int sec) argument
668 setYear(int year) argument
1274 getCalendarSystem(int year) argument
[all...]
H A DSimpleTimeZone.java56 * #setStartYear setStartYear} method can specify the year when the daylight
357 * Sets the daylight saving time starting year.
359 * @param year The daylight saving starting year.
361 public void setStartYear(int year) argument
363 startYear = year;
561 // Get the year in local time
563 int year = cdate.getNormalizedYear();
564 if (year >= startYear) {
567 offset = getOffset(cal, cdate, year, dat
604 getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) argument
672 getOffset(BaseCalendar cal, BaseCalendar.Date cdate, int year, long time) argument
724 getStart(BaseCalendar cal, BaseCalendar.Date cdate, int year) argument
733 getEnd(BaseCalendar cal, BaseCalendar.Date cdate, int year) argument
745 getTransition(BaseCalendar cal, BaseCalendar.Date cdate, int mode, int year, int month, int dayOfMonth, int dayOfWeek, int timeOfDay) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/xs/
H A DYearMonthDurationDV.java53 if ( date.year<0 || date.month<0) {
57 date.year != DatatypeConstants.FIELD_UNDEFINED?BigInteger.valueOf(sign*date.year):null,
H A DYearDV.java59 * @param str The lexical representation of year object CCYY
80 throw new RuntimeException("Leading zeros are required if the year value would otherwise have fewer than four digits; otherwise they are forbidden");
84 date.year=parseIntYear(str, len);
87 date.year=parseIntYear(str, sign);
109 * Converts year object representation to String
111 * @param date year object
116 append(message, date.year, 4);
H A DAbstractDateTimeDV.java194 if (date1.year < date2.year) {
197 if (date1.year > date2.year) {
331 throw new RuntimeException("Leading zeros are required if the year value would otherwise have fewer than four digits; otherwise they are forbidden");
333 date.year = parseIntYear(buffer, i);
436 * XML Schema 1.1 - RQ-123: Allow year 0000 in date related types.
438 if (!Constants.SCHEMA_1_1_SUPPORT && data.year == 0) {
439 throw new RuntimeException("The year \"0000\" is an illegal year valu
702 maxDayInMonthFor(int year, int month) argument
717 isLeapYear(int year) argument
934 int year, month, day, hour, minute, utc; field in class:AbstractDateTimeDV.DateTimeData
959 DateTimeData(int year, int month, int day, int hour, int minute, double second, int utc, String originalValue, boolean normalized, AbstractDateTimeDV type) argument
[all...]
H A DDurationDV.java115 //scan year
116 date.year=negate * parseInt(str,start,end);
289 duration.year=addto.year + date.year + carry;
311 temp=maxDayInMonthFor(duration.year, duration.month);
313 duration.day = duration.day + maxDayInMonthFor(duration.year, duration.month-1);
325 duration.year = duration.year+fQuotient(temp, 1, 13);
354 if ( date.year<
[all...]
/openjdk7/jaxp/src/javax/xml/datatype/
H A DDatatypeFactory.java191 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
193 * year, month, day, hour, minute, and second.
220 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively.
222 * year, month, day, hour, minute, and second.
535 * whose lexical representation contains only year and month components.
581 * whose lexical representation contains only year and month components.
603 * <p>Any remaining milliseconds after determining the year and month are discarded.</p>
612 // create a Duration that only has sign, year & month
629 * <code>year</code> and <code>month</code> as defined in
642 * @param year Yea
652 newDurationYearMonth( final boolean isPositive, final BigInteger year, final BigInteger month) argument
686 newDurationYearMonth( final boolean isPositive, final int year, final int month) argument
823 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument
859 newXMLGregorianCalendar( final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) argument
922 newXMLGregorianCalendarDate( final int year, final int month, final int day, final int timezone) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DDerInputBuffer.java286 * UTC Time is broken in storing only two digits of year.
290 * Generalized time has a four-digit year and allows any
296 int year, month, day, hour, minute, second, millis;
301 year = 1000 * Character.digit((char)buf[pos++], 10);
302 year += 100 * Character.digit((char)buf[pos++], 10);
303 year += 10 * Character.digit((char)buf[pos++], 10);
304 year += Character.digit((char)buf[pos++], 10);
308 year = 10 * Character.digit((char)buf[pos++], 10);
309 year += Character.digit((char)buf[pos++], 10);
311 if (year < 5
[all...]
/openjdk7/jdk/src/share/classes/java/util/zip/
H A DZipEntry.java298 int year = d.getYear() + 1900;
299 if (year < 1980) {
302 return (year - 1980) << 25 | (d.getMonth() + 1) << 21 |
/openjdk7/jdk/test/java/util/Calendar/
H A DWeekDateTest.java38 // Calendar year-date, Week year-date
112 for (int year = 2000; year <= 2100; year++) {
114 cal.set(year, JUNE, 1);

Completed in 107 milliseconds

123