Searched defs:year (Results 1 - 25 of 29) sorted by relevance

12

/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/make/tools/src/build/tools/javazic/
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...]
H A DRuleRec.java104 * @return true if this rule record has "max" as TO (year).
113 * year as the ZoneRec until year.
164 Main.panic("invalid year value: "+token);
183 Main.panic("invalid year value: "+token);
211 * Calculates the transition time of the given year under this rule.
212 * @param year the year value
215 * @return the transition time in milliseconds of the given year in UTC.
217 long getTransitionTime(int year, in 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 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...]
/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/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/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...]
H A DXMLGregorianCalendar.java74 * <td><a name="datetimefield-year"/>year</td>
80 * {@link #getEon()} is high order year value in billion of years.<br/>
83 * 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
85 * this class allows the year field to be set to zero. Otherwise,
86 * the year field value is handled exactly as described
88 * validation does not allow for the year field to have a value of zero.
213 * BigInteger year,
222 * int year,
232 * int year,
271 setYear(BigInteger year) argument
286 setYear(int year) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/util/calendar/
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 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...]
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 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 DImmutableGregorianDate.java53 public CalendarDate setYear(int year) { argument
149 public CalendarDate setDate(int year, int month, int dayOfMonth) { argument
153 public CalendarDate addDate(int year, int month, int dayOfMonth) { argument
H A DZoneInfo.java374 * @param year The year in the given date.
382 public int getOffset(int era, int year, int month, int day, argument
389 year = 1 - year;
395 date.setDate(year, month + 1, day);
541 // * @return the last year in the transition table or -1 if this
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltDatetime.java231 * The date:year function returns the year of a date as a number. If no
245 public static double year(String datetimeIn) method in class:ExsltDatetime
265 public static double year() method in class:ExsltDatetime
272 * The date:month-in-year function returns the month of a date as a number. If no argument
309 * The date:week-in-year function returns the week of the year as a number. If no argument
311 * default argument. For the purposes of numbering, counting follows ISO 8601: week 1 in a year
312 * is the week containing the first Thursday of the year, with new weeks beginning on a Monday.
343 * The date:day-in-year functio
[all...]
/openjdk7/jdk/src/share/classes/java/util/
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 DTimeZone.java178 * @param year the year in the given date.
191 public abstract int getOffset(int era, int year, int month, int day, argument
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 DJapaneseImperialCalendar.java42 * calendar system in which the imperial era-based year numbering is
57 * the Gregorian year values are used. Unlike {@link
61 * Gregorian year 1, 0 and negative values are used. The Japanese
241 // Calculate the least maximum year and least day of Year
243 // era transition in a Gregorian year.
244 int year = Integer.MAX_VALUE;
259 // Unless the first year starts from January 1, the actual
260 // max value could be one year short. For example, if it's
265 year = Math.min(y, year);
2000 getFixedDate(int era, int year, int fieldMask) 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...]
H A DCalendar.java134 * first week of the month or year as a reference point. The first week of a
135 * month or year is defined as the earliest seven day period beginning on
137 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks
141 * designate the week before week 1 of a year as week <code><i>n</i></code> of
142 * the previous year.
148 * year and month with no day of month), or there may be inconsistent
266 * adding 13 months to August gives September of the next year. Since
291 * year, and an underlying <code>GregorianCalendar</code>. If the
374 * year. This is a calendar-specific value; see subclass documentation.
381 * the year i
1241 set(int year, int month, int date) argument
1265 set(int year, int month, int date, int hourOfDay, int minute) argument
1292 set(int year, int month, int date, int hourOfDay, int minute, int second) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/xs/
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...]

Completed in 94 milliseconds

12