/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKMonth.java | 68 import java.time.Month; 87 * Test Month. 97 TemporalAccessor[] array = {Month.JANUARY, Month.JUNE, Month.DECEMBER, }; 123 Month test = Month.of(i); 130 Month.of(0); 135 Month.of(13); 141 assertEquals(Month.from(LocalDate.of(2011, 6, 6)), Month.JUNE) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
TCKZoneOffsetTransitionRule.java | 67 import java.time.Month; 99 Month.MARCH, 20, DayOfWeek.SUNDAY, null, false, TimeDefinition.WALL, 106 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, null, 113 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 120 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 127 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 134 Month.MARCH, -29, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 141 Month.MARCH, 0, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 148 Month.MARCH, 32, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 155 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, true, TimeDefinition.WALL [all...] |
/libcore/luni/src/test/java/libcore/java/time/ |
YearMonthTest.java | 20 import java.time.Month; 41 YearMonth ym = YearMonth.of(2000, Month.JANUARY); 43 YearMonth bceYm = YearMonth.of(-1999, Month.JANUARY); 45 assertEquals(YearMonth.of(1000, Month.JANUARY), ym.with(ChronoField.YEAR, 1000)); 46 assertEquals(YearMonth.of(-1, Month.JANUARY), ym.with(ChronoField.YEAR, -1)); 47 assertEquals(YearMonth.of(2000, Month.FEBRUARY), ym.with(ChronoField.MONTH_OF_YEAR, 2)); 48 assertEquals(YearMonth.of(-1999, Month.DECEMBER), 55 assertEquals(YearMonth.of(1, Month.JANUARY), ym.with(ChronoField.YEAR_OF_ERA, 1)); 57 assertEquals(YearMonth.of(0, Month.JANUARY), bceYm.with(ChronoField.YEAR_OF_ERA, 1)); 58 assertEquals(YearMonth.of(0, Month.JANUARY), ym.with(ChronoField.PROLEPTIC_MONTH, 0)) [all...] |
ZonedDateTimeTest.java | 22 import java.time.Month; 48 private static final LocalDateTime LDT_P1 = LocalDateTime.of(2000, Month.JANUARY, 1, 0, 0); 51 private static final LocalDateTime LDT_P2 = LocalDateTime.of(2000, Month.JUNE, 1, 0, 0); 55 private static final LocalDateTime LDT_IN_GAP = LocalDateTime.of(2000, Month.MARCH, 26, 2, 30); 60 LocalDateTime.of(2000, Month.OCTOBER, 29, 2, 30);
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKTemporalAdjusters.java | 64 import static java.time.Month.DECEMBER; 65 import static java.time.Month.JANUARY; 74 import java.time.Month; 112 for (Month month : Month.values()) { 113 for (int i = 1; i <= month.length(false); i++) { 114 LocalDate date = date(2007, month, i); 117 assertEquals(test.getMonth(), month); local 125 for (Month month : Month.values()) 130 assertEquals(test.getMonth(), month); local 151 assertEquals(test.getMonth(), month); local 164 assertEquals(test.getMonth(), month); local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/zone/serial/ |
TCKZoneOffsetTransitionRuleSerialization.java | 64 import java.time.Month; 89 Month.MARCH, 20, null, TIME_0100, false, TimeDefinition.STANDARD, 99 Month.MARCH, 20, DayOfWeek.FRIDAY, LocalTime.MIDNIGHT, true, TimeDefinition.UTC, 107 Month.MARCH, 20, DayOfWeek.WEDNESDAY, LocalTime.of(13, 34, 56), false, TimeDefinition.STANDARD, 115 Month.MARCH, 20, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 123 Month.MARCH, -1, DayOfWeek.SUNDAY, TIME_0100, false, TimeDefinition.WALL, 131 Month.MARCH, 20, null, TIME_0100, false, TimeDefinition.WALL,
|
/libcore/ojluni/src/main/java/java/time/ |
Month.java | 83 * A month-of-year, such as 'July'. 85 * {@code Month} is an enum representing the 12 months of the year - 89 * In addition to the textual enum name, each month-of-year has an {@code int} value. 94 * <b>Do not use {@code ordinal()} to obtain the numeric representation of {@code Month}. 98 * As such, this enum may be used by any calendar system that has the month-of-year 106 public enum Month implements TemporalAccessor, TemporalAdjuster { 109 * The singleton instance for the month of January with 31 days. 114 * The singleton instance for the month of February with 28 days, or 29 in a leap year. 119 * The singleton instance for the month of March with 31 days. 124 * The singleton instance for the month of April with 30 days [all...] |
MonthDay.java | 91 * A month-day in the ISO-8601 calendar system, such as {@code --12-03}. 94 * of a month and day-of-month. Any field that can be derived from a month and day, 139 * The month-of-year, not null. 141 private final int month; field in class:MonthDay 143 * The day-of-month. 149 * Obtains the current month-day from the system clock in the default time-zone. 152 * time-zone to obtain the current month-day. 157 * @return the current month-day using the system clock and default time-zone, not nul [all...] |
/libcore/luni/src/test/java/libcore/java/time/zone/ |
ZoneOffsetTransitionTest.java | 20 import java.time.Month; 36 LocalDateTime time = LocalDateTime.of(2000, Month.JANUARY, 1, 0, 0);
|
IcuZoneRulesProviderTest.java | 28 import java.time.Month; 70 LocalDateTime.of(1900, Month.DECEMBER, 24, 12, 0).toInstant(ZoneOffset.UTC), 71 LocalDateTime.of(1970, Month.JANUARY, 1, 2, 3).toInstant(ZoneOffset.UTC), 72 LocalDateTime.of(1980, Month.FEBRUARY, 4, 5, 6).toInstant(ZoneOffset.UTC), 73 LocalDateTime.of(1990, Month.MARCH, 7, 8, 9).toInstant(ZoneOffset.UTC), 74 LocalDateTime.of(2000, Month.APRIL, 10, 11, 12).toInstant(ZoneOffset.UTC), 75 LocalDateTime.of(2016, Month.MAY, 13, 14, 15).toInstant(ZoneOffset.UTC), 76 LocalDateTime.of(2020, Month.JUNE, 16, 17, 18).toInstant(ZoneOffset.UTC), 77 LocalDateTime.of(2100, Month.JULY, 19, 20, 21).toInstant(ZoneOffset.UTC), 123 final Instant start = LocalDateTime.of(1900, Month.JANUARY, 1, 12, 0 [all...] |
ZoneRulesTest.java | 22 import java.time.Month; 50 LocalDateTime.of(2000, Month.JANUARY, 1, 1, 1).toInstant(ZoneOffset.UTC),
|
/device/linaro/bootloader/edk2/EmulatorPkg/RealTimeClockRuntimeDxe/ |
RealTimeClock.c | 253 Time->Month < 1 ||
254 Time->Month > 12 ||
278 Time->Day > DayOfMonth[Time->Month - 1] ||
279 (Time->Month == 2 && (!IsLeapYear (Time) && Time->Day > 28))
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/ |
PcRtc.c | 162 Time.Month = RtcRead (RTC_ADDRESS_MONTH);
218 Time.Month = RTC_INIT_MONTH;
251 Time.Month = RTC_INIT_MONTH;
380 Time->Month = RtcRead (RTC_ADDRESS_MONTH);
516 RtcWrite (RTC_ADDRESS_MONTH, RtcTime.Month);
609 Time->Month = RtcRead (RTC_ADDRESS_MONTH);
630 Time->Month = RtcTime.Month;
744 RtcTime.Month = RtcRead (RTC_ADDRESS_MONTH);
862 Time->Month = CheckAndConvertBcd8ToDecimal8 (Time->Month); [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/ |
Rtc.c | 162 Time->Day > mDayOfMonth[Time->Month - 1] ||
163 (Time->Month == 2 && (!IsLeapYear (Time) && Time->Day > 28))
236 Time->Month = DecimaltoBcd (Time->Month);
265 (Time->Month < 1 ) ||
266 (Time->Month > 12 ) ||
343 Time->Month = BcdToDecimal (Time->Month);
445 Time->Month = RtcRead (RTC_ADDRESS_MONTH);
547 RtcWrite (RTC_ADDRESS_MONTH, RtcTime.Month);
[all...] |
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Include/Guid/ |
FirmwareId.h | 52 CHAR8 Month[2];
|
/device/linaro/bootloader/edk2/StdLib/LibC/Time/ |
TimeEfi.c | 35 BT->tm_mon = ET->Month - 1; // BD time is zero based, EFI is 1 based
74 ET->Month = (UINT8)BT->tm_mon + 1;
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/ |
Rtc.c | 124 // Month
144 EfiTime.Month = (UINT8)(CharToUint(mBiosReleaseDate[0])*10 + CharToUint(mBiosReleaseDate[1]));
150 DEBUG ((EFI_D_INFO, "Day:%d Month:%d Year:%d \n", (UINT32)EfiTime.Day, (UINT32)EfiTime.Month, (UINT32)EfiTime.Year));
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
DateTimeFormatterBuilderTest.java | 21 import java.time.Month; 47 assertEquals("<2000-12-31>", formatter.format(LocalDate.of(2000, Month.DECEMBER, 31)));
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/RealTimeClockLib/ |
RealTimeClockLib.c | 80 Time->Month = ((Data >> 4) & 0x1) * 10 + (Data & 0xF);
142 || (Time->Month < 1 || Time->Month > 12)
143 || (Time->Day < 1 || Time->Day > MonthDayCount[Time->Month])
159 Data = ((Time->Month / 10) << 4) | (Time->Month % 10);
|
/device/linaro/bootloader/edk2/Nt32Pkg/RealTimeClockRuntimeDxe/ |
RealTimeClock.c | 96 Time->Month = (UINT8) SystemTime.wMonth;
171 SystemTime.wMonth = Time->Month;
315 Time->Month < 1 ||
316 Time->Month > 12 ||
355 Time->Day > DayOfMonth[Time->Month - 1] ||
356 (Time->Month == 2 && (!IsLeapYear (Time) && Time->Day > 28))
|
/device/linaro/bootloader/edk2/Omap35xxPkg/Library/RealTimeClockLib/ |
RealTimeClockLib.c | 80 Time->Month = ((Data >> 4) & 0x1) * 10 + (Data & 0xF);
142 || (Time->Month < 1 || Time->Month > 12)
143 || (Time->Day < 1 || Time->Day > MonthDayCount[Time->Month])
159 Data = ((Time->Month / 10) << 4) | (Time->Month % 10);
|
/prebuilts/go/darwin-x86/src/time/ |
zoneinfo_windows.go | 114 // Windows specifies daylight savings information in "day in month" format: 115 // d.Month is month number (1-12) 117 // d.Day is week within the month (1 to 5, where 5 is last week of the month) 120 t := Date(year, Month(d.Month), day, int(d.Hour), int(d.Minute), int(d.Second), 0, UTC) 131 if day > daysIn(Month(d.Month), year) { 144 if i.StandardDate.Month > 0 [all...] |
/prebuilts/go/linux-x86/src/time/ |
zoneinfo_windows.go | 114 // Windows specifies daylight savings information in "day in month" format: 115 // d.Month is month number (1-12) 117 // d.Day is week within the month (1 to 5, where 5 is last week of the month) 120 t := Date(year, Month(d.Month), day, int(d.Hour), int(d.Minute), int(d.Second), 0, UTC) 131 if day > daysIn(Month(d.Month), year) { 144 if i.StandardDate.Month > 0 [all...] |
/libcore/ojluni/src/main/java/java/time/zone/ |
ZoneOffsetTransitionRule.java | 77 import java.time.Month; 108 * The month of the month-day of the first day of the cutover week. 111 private final Month month; field in class:ZoneOffsetTransitionRule 113 * The day-of-month of the month-day of the cutover week. 116 * The value is the number of days from the end of the month, such that 117 * {@code -1} is the last day of the month, {@code -2} is the second 122 * The cutover day-of-week, null to retain the day-of-month 342 Month month = Month.of(data >>> 28); local [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
TestChronoUnit.java | 59 import static java.time.Month.AUGUST; 60 import static java.time.Month.FEBRUARY; 61 import static java.time.Month.JULY; 62 import static java.time.Month.JUNE; 63 import static java.time.Month.MARCH; 64 import static java.time.Month.OCTOBER; 65 import static java.time.Month.SEPTEMBER; 73 import java.time.Month; 330 private static LocalDate date(int year, Month month, int dom) [all...] |