Home
last modified time | relevance | path

Searched refs:isDate (Results 1 – 25 of 41) sorted by relevance

12

/third_party/node/deps/npm/node_modules/is-date-object/
Dtest.js4 var isDate = require('./'); variable
8 t.notOk(isDate(), 'undefined is not Date');
9 t.notOk(isDate(null), 'null is not Date');
10 t.notOk(isDate(false), 'false is not Date');
11 t.notOk(isDate(true), 'true is not Date');
12 t.notOk(isDate(42), 'number is not Date');
13 t.notOk(isDate('foo'), 'string is not Date');
14 t.notOk(isDate([]), 'array is not Date');
15 t.notOk(isDate({}), 'object is not Date');
16 t.notOk(isDate(function () {}), 'function is not Date');
[all …]
DREADME.md18 var isDate = require('is-date-object');
21 assert.notOk(isDate(undefined));
22 assert.notOk(isDate(null));
23 assert.notOk(isDate(false));
24 assert.notOk(isDate(true));
25 assert.notOk(isDate(42));
26 assert.notOk(isDate('foo'));
27 assert.notOk(isDate(function () {}));
28 assert.notOk(isDate([]));
29 assert.notOk(isDate({}));
[all …]
/third_party/node/test/js-native-api/test_date/
Dtest.js11 assert.strictEqual(test_date.isDate(dateTypeTestDate), true);
13 assert.strictEqual(test_date.isDate(new Date(1549183351)), true);
15 assert.strictEqual(test_date.isDate(2.4), false);
16 assert.strictEqual(test_date.isDate('not a date'), false);
17 assert.strictEqual(test_date.isDate(undefined), false);
18 assert.strictEqual(test_date.isDate(null), false);
19 assert.strictEqual(test_date.isDate({}), false);
Dtest_date.c26 static napi_value isDate(napi_env env, napi_callback_info info) { in isDate() function
54 DECLARE_NAPI_PROPERTY("isDate", isDate), in Init()
/third_party/node/test/parallel/
Dtest-util.js54 assert.strictEqual(util.isDate(new Date()), true);
55 assert.strictEqual(util.isDate(new Date(0), 'foo'), true);
56 assert.strictEqual(util.isDate(new (context('Date'))()), true);
57 assert.strictEqual(util.isDate(Date()), false);
58 assert.strictEqual(util.isDate({}), false);
59 assert.strictEqual(util.isDate([]), false);
60 assert.strictEqual(util.isDate(new Error()), false);
61 assert.strictEqual(util.isDate(Object.create(Date.prototype)), false);
Dtest-fs-stat-bigint.js9 const { isDate } = require('util').types;
27 if (isDate(val)) {
/third_party/typescript/tests/baselines/reference/
DnarrowFromAnyWithTypePredicate.types21 declare function isDate(x): x is Date;
22 >isDate : (x: any) => x is Date
101 if (isDate(x)) {
102 >isDate(x) : boolean
103 >isDate : (x: any) => x is Date
DnarrowFromAnyWithTypePredicate.symbols28 declare function isDate(x): x is Date;
29 >isDate : Symbol(isDate, Decl(narrowFromAnyWithTypePredicate.ts, 4, 40))
87 if (isDate(x)) {
88 >isDate : Symbol(isDate, Decl(narrowFromAnyWithTypePredicate.ts, 4, 40))
DnarrowFromAnyWithTypePredicate.js7 declare function isDate(x): x is Date;
32 if (isDate(x)) {
57 if (isDate(x)) {
DnarrowFromAnyWithTypePredicate.errors.txt14 declare function isDate(x): x is Date;
47 if (isDate(x)) {
DunderscoreTest1.js60 isDate(): boolean;
234 isDate(): ChainedObject<boolean>;
616 isDate(object: any): boolean;
848 _.isDate(new Date());
1047 _.isDate(new Date());
DunderscoreTest1.errors.txt217 _.isDate(new Date());
330 isDate(): boolean;
504 isDate(): ChainedObject<boolean>;
886 isDate(object: any): boolean;
/third_party/node/deps/npm/node_modules/core-util-is/lib/
Dutil.js78 function isDate(d) { function
81 exports.isDate = isDate;
/third_party/typescript/tests/cases/conformance/types/any/
DnarrowFromAnyWithTypePredicate.ts6 declare function isDate(x): x is Date;
31 if (isDate(x)) {
/third_party/node/deps/npm/node_modules/core-util-is/
Dtest.js49 assert.equal(t.isDate(null), false);
50 assert.equal(t.isDate('1'), false);
51 assert.equal(t.isDate(new Date()), true);
Dfloat.patch238 - if (isDate(value)) {
266 - if (isDate(value)) {
/third_party/node/deps/npm/node_modules/es-to-primitive/
Des2015.js7 var isDate = require('is-date-object'); variable
71 if (hint === 'default' && (isDate(input) || isSymbol(input))) {
/third_party/node/lib/
Dutil.js356 isDate: types.isDate, property
/third_party/node/lib/internal/util/
Dcomparisons.js32 isDate,
223 } else if (isDate(val1)) {
224 if (!isDate(val2) ||
282 isDate(val2) ||
/third_party/node/lib/internal/fs/
Dutils.js36 isDate,
610 if (isDate(time)) {
/third_party/typescript/tests/cases/compiler/
DunderscoreTest1.ts58 isDate(): boolean; method
232 isDate(): ChainedObject<boolean>; method
614 isDate(object: any): boolean; method
846 _.isDate(new Date());
/third_party/jsframework/runtime/main/extend/systemplugin/napi/
Dohos_util.js380 this.isDate = function (...args) { method
/third_party/node/doc/api/
Dutil.md1515 ### `util.types.isDate(value)`
1526 util.types.isDate(new Date()); // Returns true
2127 ### `util.isDate(object)`
2133 > Stability: 0 - Deprecated: Use [`util.types.isDate()`][] instead.
2143 util.isDate(new Date());
2145 util.isDate(Date());
2147 util.isDate({});
2528 [`util.types.isDate()`]: #util_util_types_isdate_value
/third_party/freetype/docs/reference/assets/javascripts/lunr/
Dwordcut.js1 …r(var e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return!0}return c.isDate(n)&&c.isDate(t)?n.getTim…
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DDateTimePatternGenerator.java1749 boolean isDate = (foundMask & DATE_MASK) != 0; in hasDateAndTimeFields()
1751 return isDate && isTime; in hasDateAndTimeFields()

12