Home
last modified time | relevance | path

Searched refs:milliseconds (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/main/java/java/util/
DDate.java52 private transient long milliseconds; field in Date
78 milliseconds = cal.getTimeInMillis(); in Date()
102 milliseconds = cal.getTimeInMillis(); in Date()
129 milliseconds = cal.getTimeInMillis(); in Date()
139 public Date(long milliseconds) { in Date() argument
140 this.milliseconds = milliseconds; in Date()
154 milliseconds = parse(string); in Date()
166 return milliseconds > date.milliseconds; in after()
178 return milliseconds < date.milliseconds; in before()
207 if (milliseconds < date.milliseconds) { in compareTo()
[all …]
DSimpleTimeZone.java548 public void setDSTSavings(int milliseconds) { in setDSTSavings() argument
549 if (milliseconds <= 0) { in setDSTSavings()
550 throw new IllegalArgumentException("milliseconds <= 0: " + milliseconds); in setDSTSavings()
552 dstSavings = milliseconds; in setDSTSavings()
DCalendar.java1202 public void setTimeInMillis(long milliseconds) { in setTimeInMillis() argument
1203 if (!isTimeSet || !areFieldsSet || time != milliseconds) { in setTimeInMillis()
1204 time = milliseconds; in setTimeInMillis()
DGregorianCalendar.java293 GregorianCalendar(long milliseconds) { in GregorianCalendar() argument
295 setTimeInMillis(milliseconds); in GregorianCalendar()
/libcore/luni/src/main/java/javax/xml/datatype/
DDatatypeFactory.java404 int milliseconds = (int) (val % 60000L); // 60000 milliseconds per minute in newDurationDayTime() local
406 ++milliseconds; in newDurationDayTime()
408 if (milliseconds % 1000 == 0) { in newDurationDayTime()
409 int seconds = milliseconds / 1000; in newDurationDayTime()
422 BigInteger.valueOf(minutes), BigDecimal.valueOf(milliseconds, 3)); in newDurationDayTime()
426 BigDecimal seconds = BigDecimal.valueOf(milliseconds, 3); in newDurationDayTime()
1002 final int milliseconds, in newXMLGregorianCalendarTime() argument
1008 if (milliseconds != DatatypeConstants.FIELD_UNDEFINED) { in newXMLGregorianCalendarTime()
1009 if (milliseconds < 0 || milliseconds > 1000) { in newXMLGregorianCalendarTime()
1013 + "with invalid milliseconds: " + milliseconds in newXMLGregorianCalendarTime()
[all …]
/libcore/luni/src/main/java/java/sql/
DTimestamp.java334 int milliseconds = (int) (theTime % 1000); in setTimeImpl() local
335 theTime = theTime - milliseconds; in setTimeImpl()
336 if (milliseconds < 0) { in setTimeImpl()
338 milliseconds = 1000 + milliseconds; in setTimeImpl()
341 setNanos(milliseconds * 1000000); in setTimeImpl()
/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java30 … public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { in getOffset() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest2.java44 transient long milliseconds; field in SerializationStressTest2.ReadWriteObjectAndPrimitiveData
60 milliseconds = in.readLong(); in readObject()
67 out.writeLong(milliseconds); in writeObject()