/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | CodeSignerTest.java | 39 private Date now = new Date(); field in class:CodeSignerTest 41 private Timestamp ts = new Timestamp(now, cpath);
|
H A D | TimestampTest.java | 39 private Date now = new Date(); field in class:TimestampTest 53 new Timestamp(now, null); 59 Timestamp timestamp = new Timestamp(now, cpath); 60 assertEquals("not expected value", now, timestamp.getTimestamp()); 68 Timestamp one = new Timestamp(now, cpath); 69 Timestamp two = new Timestamp(now, cpath); 83 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath); 87 Timestamp t = new Timestamp(now, cpath); 88 assertEquals(now, t.getTimestamp()); 89 assertNotSame(now, [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | CertificateValidity.java | 246 Date now = new Date(); 247 valid(now); 252 * @param now the Date against which to compare the validity 261 public void valid(Date now) argument 268 if (notBefore.after(now)) { 272 if (notAfter.before(now)) {
|
H A D | PrivateKeyUsageExtension.java | 194 Date now = new Date(); 195 valid(now); 207 public void valid(Date now) argument 214 if (notBefore.after(now)) { 218 if (notAfter.before(now)) {
|
/libcore/ojluni/src/main/native/ |
H A D | PollArrayWrapper.c | 44 jlong start, now; local 57 now = t.tv_sec * 1000 + t.tv_usec / 1000; 58 diff = now - start; 63 start = now;
|
H A D | System.c | 260 struct timespec now; local 261 clock_gettime(CLOCK_MONOTONIC, &now); 262 return now.tv_sec * 1000000000LL + now.tv_nsec;
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | TestLocalTime.java | 185 // now() 189 public void now() { method in class:TestLocalTime 192 LocalTime.now(Clock.systemDefaultZone()); 196 LocalTime expected = LocalTime.now(Clock.systemDefaultZone()); 197 LocalTime test = LocalTime.now(); 205 // due to a DST change between the two calls to now. 208 "LocalTime.now vs LocalTime.now(Clock.systemDefaultZone()) not close");
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | RelativeDateTimeFormatter.java | 67 * return a string describing 'time' as a time relative to 'now' such as 72 * the elapsed time between time' and 'now', e.g. minutes, days and etc. 87 * the abbreviated forms when available. When 'time' equals to 'now', it 92 long now, long minResolution, int flags) { 96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext); 100 long now, long minResolution, int flags, DisplayContext displayContext) { 109 return getRelativeTimeSpanString(icuLocale, icuTimeZone, time, now, minResolution, flags, 114 android.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, 117 long duration = Math.abs(now - time); 118 boolean past = (now > 91 getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, int flags) argument 99 getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, int flags, DisplayContext displayContext) argument 113 getRelativeTimeSpanString(ULocale icuLocale, android.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, DisplayContext displayContext) argument 260 getRelativeDateTimeString(Locale locale, java.util.TimeZone tz, long time, long now, long minResolution, long transitionResolution, int flags) argument [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | MonthDay.java | 159 public static MonthDay now() { method in class:MonthDay 160 return now(Clock.systemDefaultZone()); 175 public static MonthDay now(ZoneId zone) { method in class:MonthDay 176 return now(Clock.system(zone)); 189 public static MonthDay now(Clock clock) { method in class:MonthDay 190 final LocalDate now = LocalDate.now(clock); // called once 191 return MonthDay.of(now.getMonth(), now.getDayOfMonth());
|
H A D | Instant.java | 266 public static Instant now() { method in class:Instant 281 public static Instant now(Clock clock) { method in class:Instant
|
H A D | Year.java | 169 public static Year now() { method in class:Year 170 return now(Clock.systemDefaultZone()); 185 public static Year now(ZoneId zone) { method in class:Year 186 return now(Clock.system(zone)); 199 public static Year now(Clock clock) { method in class:Year 200 final LocalDate now = LocalDate.now(clock); // called once 201 return Year.of(now.getYear());
|
H A D | YearMonth.java | 162 public static YearMonth now() { method in class:YearMonth 163 return now(Clock.systemDefaultZone()); 178 public static YearMonth now(ZoneId zone) { method in class:YearMonth 179 return now(Clock.system(zone)); 192 public static YearMonth now(Clock clock) { method in class:YearMonth 193 final LocalDate now = LocalDate.now(clock); // called once 194 return YearMonth.of(now.getYear(), now.getMonth());
|
H A D | LocalDate.java | 185 public static LocalDate now() { method in class:LocalDate 186 return now(Clock.systemDefaultZone()); 201 public static LocalDate now(ZoneId zone) { method in class:LocalDate 202 return now(Clock.system(zone)); 215 public static LocalDate now(Clock clock) { method in class:LocalDate 218 final Instant now = clock.instant(); // called once 219 ZoneOffset offset = clock.getZone().getRules().getOffset(now); 220 long epochSec = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later 334 // check year now we are certain it is correct
|
H A D | LocalTime.java | 237 public static LocalTime now() { method in class:LocalTime 238 return now(Clock.systemDefaultZone()); 253 public static LocalTime now(ZoneId zone) { method in class:LocalTime 254 return now(Clock.system(zone)); 267 public static LocalTime now(Clock clock) { method in class:LocalTime 270 final Instant now = clock.instant(); // called once 271 ZoneOffset offset = clock.getZone().getRules().getOffset(now); 272 long localSecond = now.getEpochSecond() + offset.getTotalSeconds(); // overflow caught later 274 return ofNanoOfDay(secsOfDay * NANOS_PER_SECOND + now.getNano());
|
H A D | OffsetTime.java | 159 public static OffsetTime now() { method in class:OffsetTime 160 return now(Clock.systemDefaultZone()); 176 public static OffsetTime now(ZoneId zone) { method in class:OffsetTime 177 return now(Clock.system(zone)); 192 public static OffsetTime now(Clock clock) { method in class:OffsetTime 194 final Instant now = clock.instant(); // called once 195 return ofInstant(now, clock.getZone().getRules().getOffset(now));
|
H A D | LocalDateTime.java | 173 public static LocalDateTime now() { method in class:LocalDateTime 174 return now(Clock.systemDefaultZone()); 189 public static LocalDateTime now(ZoneId zone) { method in class:LocalDateTime 190 return now(Clock.system(zone)); 203 public static LocalDateTime now(Clock clock) { method in class:LocalDateTime 205 final Instant now = clock.instant(); // called once 206 ZoneOffset offset = clock.getZone().getRules().getOffset(now); 207 return ofEpochSecond(now.getEpochSecond(), now.getNano(), offset);
|
H A D | OffsetDateTime.java | 205 public static OffsetDateTime now() { method in class:OffsetDateTime 206 return now(Clock.systemDefaultZone()); 222 public static OffsetDateTime now(ZoneId zone) { method in class:OffsetDateTime 223 return now(Clock.system(zone)); 238 public static OffsetDateTime now(Clock clock) { method in class:OffsetDateTime 240 final Instant now = clock.instant(); // called once 241 return ofInstant(now, clock.getZone().getRules().getOffset(now));
|
H A D | ZonedDateTime.java | 192 public static ZonedDateTime now() { method in class:ZonedDateTime 193 return now(Clock.systemDefaultZone()); 209 public static ZonedDateTime now(ZoneId zone) { method in class:ZonedDateTime 210 return now(Clock.system(zone)); 225 public static ZonedDateTime now(Clock clock) { method in class:ZonedDateTime 227 final Instant now = clock.instant(); // called once 228 return ofInstant(now, clock.getZone()); 501 * local date-time now does not occur. This method can be used to create the object
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | MinguoDate.java | 126 public static MinguoDate now() { method in class:MinguoDate 127 return now(Clock.systemDefaultZone()); 142 public static MinguoDate now(ZoneId zone) { method in class:MinguoDate 143 return now(Clock.system(zone)); 157 public static MinguoDate now(Clock clock) { method in class:MinguoDate 158 return new MinguoDate(LocalDate.now(clock));
|
H A D | ThaiBuddhistDate.java | 126 public static ThaiBuddhistDate now() { method in class:ThaiBuddhistDate 127 return now(Clock.systemDefaultZone()); 142 public static ThaiBuddhistDate now(ZoneId zone) { method in class:ThaiBuddhistDate 143 return now(Clock.system(zone)); 157 public static ThaiBuddhistDate now(Clock clock) { method in class:ThaiBuddhistDate 158 return new ThaiBuddhistDate(LocalDate.now(clock));
|
H A D | HijrahDate.java | 176 public static HijrahDate now() { method in class:HijrahDate 177 return now(Clock.systemDefaultZone()); 193 public static HijrahDate now(ZoneId zone) { method in class:HijrahDate 194 return now(Clock.system(zone)); 209 public static HijrahDate now(Clock clock) { method in class:HijrahDate 210 return HijrahDate.ofEpochDay(HijrahChronology.INSTANCE, LocalDate.now(clock).toEpochDay());
|
H A D | JapaneseDate.java | 159 public static JapaneseDate now() { method in class:JapaneseDate 160 return now(Clock.systemDefaultZone()); 175 public static JapaneseDate now(ZoneId zone) { method in class:JapaneseDate 176 return now(Clock.system(zone)); 190 public static JapaneseDate now(Clock clock) { method in class:JapaneseDate 191 return new JapaneseDate(LocalDate.now(clock));
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKMonthDay.java | 150 // now() 153 public void now() { method in class:TCKMonthDay 154 MonthDay expected = MonthDay.now(Clock.systemDefaultZone()); 155 MonthDay test = MonthDay.now(); 160 expected = MonthDay.now(Clock.systemDefaultZone()); 161 test = MonthDay.now(); 167 // now(ZoneId) 171 MonthDay.now((ZoneId) null); 177 MonthDay expected = MonthDay.now(Clock.system(zone)); 178 MonthDay test = MonthDay.now(zon [all...] |
H A D | TCKOffsetTime.java | 205 // now() 208 public void now() { method in class:TCKOffsetTime 209 ZonedDateTime nowDT = ZonedDateTime.now(); 211 OffsetTime expected = OffsetTime.now(Clock.systemDefaultZone()); 212 OffsetTime test = OffsetTime.now(); 219 // now(Clock) 226 OffsetTime test = OffsetTime.now(clock); 240 OffsetTime test = OffsetTime.now(clock); 255 OffsetTime test = OffsetTime.now(clock); 266 OffsetTime.now((ZoneI [all...] |
H A D | TCKYear.java | 154 // now() 157 public void now() { method in class:TCKYear 158 Year expected = Year.now(Clock.systemDefaultZone()); 159 Year test = Year.now(); 164 expected = Year.now(Clock.systemDefaultZone()); 165 test = Year.now(); 171 // now(ZoneId) 175 Year.now((ZoneId) null); 181 Year expected = Year.now(Clock.system(zone)); 182 Year test = Year.now(zon [all...] |