Home
last modified time | relevance | path

Searched refs:getSeconds (Results 1 – 25 of 37) sorted by relevance

12

/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DDurations.java81 int secDiff = Long.compare(d1.getSeconds(), d2.getSeconds());
115 return isValid(duration.getSeconds(), duration.getNanos()); in isValid()
146 return (duration.getSeconds() == 0) ? duration.getNanos() < 0 : duration.getSeconds() < 0; in isNegative()
181 long seconds = duration.getSeconds(); in checkValid()
217 long seconds = duration.getSeconds(); in toString()
340 return checkValid(duration).getSeconds() / SECONDS_PER_DAY; in toDays()
349 return checkValid(duration).getSeconds() / SECONDS_PER_HOUR; in toHours()
358 return checkValid(duration).getSeconds() / SECONDS_PER_MINUTE; in toMinutes()
367 return checkValid(duration).getSeconds(); in toSeconds()
385 return duration.getSeconds() + duration.getNanos() / 1e9; in toSecondsAsDouble()
[all …]
DTimestamps.java109 int secDiff = Long.compare(t1.getSeconds(), t2.getSeconds());
143 return isValid(timestamp.getSeconds(), timestamp.getNanos()); in isValid()
169 long seconds = timestamp.getSeconds(); in checkValid()
206 long seconds = timestamp.getSeconds(); in toString()
298 return checkValid(timestamp).getSeconds(); in toSeconds()
319 checkedMultiply(timestamp.getSeconds(), MILLIS_PER_SECOND), in toMillis()
341 checkedMultiply(timestamp.getSeconds(), MICROS_PER_SECOND), in toMicros()
357 checkedMultiply(timestamp.getSeconds(), NANOS_PER_SECOND), timestamp.getNanos()); in toNanos()
365 checkedSubtract(to.getSeconds(), from.getSeconds()), in between()
374 checkedAdd(start.getSeconds(), length.getSeconds()), in add()
[all …]
DTimeUtil.java330 double result = duration.getSeconds() * times + duration.getNanos() * times / 1000000000.0; in multiply()
368 return toBigInteger(duration.getSeconds()) in toBigInteger()
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java46 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MIN, start.getSeconds()); in testTimestampStringFormat()
48 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MAX, end.getSeconds()); in testTimestampStringFormat()
54 assertEquals(0, value.getSeconds()); in testTimestampStringFormat()
59 assertEquals(-1, value.getSeconds()); in testTimestampStringFormat()
101 if (result.getSeconds() != values[index].getSeconds() in run()
270 assertEquals(315576000000L, duration.getSeconds()); in testDurationStringFormat()
273 assertEquals(-315576000000L, duration.getSeconds()); in testDurationStringFormat()
483 assertEquals(-2, TimeUtil.divide(d1, 2).getSeconds()); in testTimeOperations()
484 assertEquals(-1, TimeUtil.remainder(d1, d2).getSeconds()); in testTimeOperations()
489 assertEquals(2, TimeUtil.divide(d1, -2).getSeconds()); in testTimeOperations()
[all …]
/third_party/jerryscript/tests/jerry/
Ddate-getters.js30 assert (d.getSeconds() == 14);
50 assert (d.getSeconds() == 14);
70 assert (d.getSeconds() == 0);
91 assert (isNaN (d.getSeconds()));
105 assert (new Date(-1, -1, -1, -1, -1, -1, -1).getSeconds() === 58);
Ddate-setters.js41 assert (d.getSeconds() == 1);
44 assert (d.getSeconds() == 1);
63 assert (d.getSeconds() == 1);
67 assert (d.getSeconds() == 1);
96 assert (d.getSeconds() == 1);
101 assert (d.getSeconds() == 1);
Dregression-test-issue-786.js23 try { Date.prototype.getSeconds() } catch (err) { } method in Date
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DGPBUtil.php461 if (bccomp($value->getSeconds(), "253402300800") != -1) {
464 if (bccomp($value->getSeconds(), "-62135596801") != 1) {
471 $date = new \DateTime('@'.$value->getSeconds(), new \DateTimeZone("UTC"));
507 if (bccomp($value->getSeconds(), '315576000001') != -1) {
510 if (bccomp($value->getSeconds(), '-315576000001') != 1) {
516 return (string) $value->getSeconds();
528 return bcadd($value->getSeconds(), $nanos, $digits);
/third_party/typescript/tests/baselines/reference/
Dlibrary_DatePrototypeProperties.js26 Date.prototype.getSeconds(); method in Date
76 Date.prototype.getSeconds(); method in Date
Dlibrary_DatePrototypeProperties.types171 Date.prototype.getSeconds();
172 >Date.prototype.getSeconds() : number
173 >Date.prototype.getSeconds : () => number
177 >getSeconds : () => number
Dlibrary_DatePrototypeProperties.symbols151 Date.prototype.getSeconds();
152 >Date.prototype.getSeconds : Symbol(Date.getSeconds, Decl(lib.es5.d.ts, --, --))
156 >getSeconds : Symbol(Date.getSeconds, Decl(lib.es5.d.ts, --, --))
D1.0lib-noErrors.js657 getSeconds(): number;
/third_party/protobuf/php/tests/
Dmemory_leak_test.php156 assert(1, $from->getSeconds());
163 assert($from->format('U') == $timestamp->getSeconds());
DWellKnownTest.php311 $this->assertEquals(1, $timestamp->getSeconds());
317 $this->assertEquals($from->format('U'), $timestamp->getSeconds());
355 $this->assertEquals(1, $duration->getSeconds());
DEncodeDecodeTest.php944 $this->assertEquals(1234, $m->getSeconds());
960 $this->assertEquals(946684800, $m->getSeconds());
/third_party/protobuf/php/src/Google/Protobuf/
DDuration.php114 public function getSeconds() function in Google\\Protobuf\\Duration
DTimestamp.php124 public function getSeconds() function in Google\\Protobuf\\Timestamp
/third_party/typescript/src/jsTyping/
Dshared.ts60 …(), 2, "0")}:${padLeft(d.getMinutes().toString(), 2, "0")}:${padLeft(d.getSeconds().toString(), 2,…
/third_party/typescript/tests/cases/compiler/
Dlibrary_DatePrototypeProperties.ts25 Date.prototype.getSeconds();
/third_party/protobuf/js/
Dproto3_test.js446 assertEquals(123456, msg.getSeconds());
451 assertEquals(msg.getSeconds(), anotherMsg.getSeconds());
/third_party/node/lib/
Dutil.js186 pad(d.getSeconds())].join(':');
/third_party/typescript/tests/cases/conformance/decorators/
D1.0lib-noErrors.ts657 getSeconds(): number; method
/third_party/jerryscript/jerry-core/lit/
Dlit-magic-strings.ini274 LIT_MAGIC_STRING_GET_SECONDS_UL = "getSeconds"
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_notification.js156 getSeconds: function () { method
/third_party/node/deps/npm/node_modules/core-util-is/
Dfloat.patch463 - pad(d.getSeconds())].join(':');

12