Repository navigation
@142vip.nest typeorm.BSON.类.Timestamp
API 参考 / @142vip/nest-typeorm / BSON / Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:966
new Timestamp(
int):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:972
bigint
A 64-bit bigint representing the Timestamp.
Timestamp
LongWithoutOverridesClass.constructor
new Timestamp(
long):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:976
A 64-bit Long representing the Timestamp.
Timestamp
LongWithoutOverridesClass.constructor
new Timestamp(
value):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:980
A pair of two values indicating timestamp and increment.
number
number
Timestamp
LongWithoutOverridesClass.constructor
__isLong__:
boolean
LongWithoutOverridesClass.__isLong__
add: (
addend) =>Long
Returns the sum of this and the specified Long.
string | number | Long | Timestamp
LongWithoutOverridesClass.add
and: (
other) =>Long
Returns the sum of this and the specified Long.
string | number | Long | Timestamp
Sum
LongWithoutOverridesClass.and
comp: (
other) =>-1|0|1
This is an alias of Long.compare
string | number | Long | Timestamp
-1 | 0 | 1
LongWithoutOverridesClass.comp
compare: (
other) =>-1|0|1
Compares this Long's value with the specified's.
string | number | Long | Timestamp
-1 | 0 | 1
0 if they are the same, 1 if the this is greater and -1 if the given one is greater
LongWithoutOverridesClass.compare
div: (
divisor) =>Long
This is an alias of Long.divide
string | number | Long | Timestamp
LongWithoutOverridesClass.div
divide: (
divisor) =>Long
Returns this Long divided by the specified. The result is signed if this Long is signed or unsigned if this Long is unsigned.
string | number | Long | Timestamp
Quotient
LongWithoutOverridesClass.divide
eq: (
other) =>boolean
This is an alias of Long.equals
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.eq
equals: (
other) =>boolean
Tests if this Long's value equals the specified's.
string | number | Long | Timestamp
Other value
boolean
LongWithoutOverridesClass.equals
eqz: () =>
boolean
This is an alias of Long.isZero
boolean
LongWithoutOverridesClass.eqz
ge: (
other) =>boolean
This is an alias of Long.greaterThanOrEqual
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.ge
getHighBits: () =>
number
Gets the high 32 bits as a signed integer.
number
LongWithoutOverridesClass.getHighBits
getHighBitsUnsigned: () =>
number
Gets the high 32 bits as an unsigned integer.
number
LongWithoutOverridesClass.getHighBitsUnsigned
getLowBits: () =>
number
Gets the low 32 bits as a signed integer.
number
LongWithoutOverridesClass.getLowBits
getLowBitsUnsigned: () =>
number
Gets the low 32 bits as an unsigned integer.
number
LongWithoutOverridesClass.getLowBitsUnsigned
getNumBitsAbs: () =>
number
Gets the number of bits needed to represent the absolute value of this Long.
number
LongWithoutOverridesClass.getNumBitsAbs
greaterThan: (
other) =>boolean
Tests if this Long's value is greater than the specified's.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.greaterThan
greaterThanOrEqual: (
other) =>boolean
Tests if this Long's value is greater than or equal the specified's.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.greaterThanOrEqual
gt: (
other) =>boolean
This is an alias of Long.greaterThan
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.gt
gte: (
other) =>boolean
This is an alias of Long.greaterThanOrEqual
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.gte
high:
number
LongWithoutOverridesClass.high
isEven: () =>
boolean
Tests if this Long's value is even.
boolean
LongWithoutOverridesClass.isEven
isNegative: () =>
boolean
Tests if this Long's value is negative.
boolean
LongWithoutOverridesClass.isNegative
isOdd: () =>
boolean
Tests if this Long's value is odd.
boolean
LongWithoutOverridesClass.isOdd
isPositive: () =>
boolean
Tests if this Long's value is positive.
boolean
LongWithoutOverridesClass.isPositive
isZero: () =>
boolean
Tests if this Long's value equals zero.
boolean
LongWithoutOverridesClass.isZero
le: (
other) =>boolean
This is an alias of Long.lessThanOrEqual
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.le
lessThan: (
other) =>boolean
Tests if this Long's value is less than the specified's.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.lessThan
lessThanOrEqual: (
other) =>boolean
Tests if this Long's value is less than or equal the specified's.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.lessThanOrEqual
low:
number
LongWithoutOverridesClass.low
lt: (
other) =>boolean
This is an alias of Long#lessThan.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.lt
lte: (
other) =>boolean
This is an alias of Long.lessThanOrEqual
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.lte
mod: (
divisor) =>Long
This is an alias of Long.modulo
string | number | Long | Timestamp
LongWithoutOverridesClass.mod
modulo: (
divisor) =>Long
Returns this Long modulo the specified.
string | number | Long | Timestamp
LongWithoutOverridesClass.modulo
mul: (
multiplier) =>Long
This is an alias of Long.multiply
string | number | Long | Timestamp
LongWithoutOverridesClass.mul
multiply: (
multiplier) =>Long
Returns the product of this and the specified Long.
string | number | Long | Timestamp
Multiplier
Product
LongWithoutOverridesClass.multiply
ne: (
other) =>boolean
This is an alias of Long.notEquals
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.ne
neg: () =>
Long
This is an alias of Long.negate
LongWithoutOverridesClass.neg
negate: () =>
Long
Returns the Negation of this Long's value.
LongWithoutOverridesClass.negate
neq: (
other) =>boolean
This is an alias of Long.notEquals
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.neq
not: () =>
Long
Returns the bitwise NOT of this Long.
LongWithoutOverridesClass.not
notEquals: (
other) =>boolean
Tests if this Long's value differs from the specified's.
string | number | Long | Timestamp
boolean
LongWithoutOverridesClass.notEquals
or: (
other) =>Long
Returns the bitwise OR of this Long and the specified.
string | number | Long
LongWithoutOverridesClass.or
rem: (
divisor) =>Long
This is an alias of Long.modulo
string | number | Long | Timestamp
LongWithoutOverridesClass.rem
shiftLeft: (
numBits) =>Long
Returns this Long with bits shifted to the left by the given amount.
number | Long
Number of bits
Shifted Long
LongWithoutOverridesClass.shiftLeft
shiftRight: (
numBits) =>Long
Returns this Long with bits arithmetically shifted to the right by the given amount.
number | Long
Number of bits
Shifted Long
LongWithoutOverridesClass.shiftRight
shiftRightUnsigned: (
numBits) =>Long
Returns this Long with bits logically shifted to the right by the given amount.
number | Long
Number of bits
Shifted Long
LongWithoutOverridesClass.shiftRightUnsigned
shl: (
numBits) =>Long
This is an alias of Long.shiftLeft
number | Long
LongWithoutOverridesClass.shl
shr: (
numBits) =>Long
This is an alias of Long.shiftRight
number | Long
LongWithoutOverridesClass.shr
shr_u: (
numBits) =>Long
This is an alias of Long.shiftRightUnsigned
number | Long
LongWithoutOverridesClass.shr_u
shru: (
numBits) =>Long
This is an alias of Long.shiftRightUnsigned
number | Long
LongWithoutOverridesClass.shru
sub: (
subtrahend) =>Long
This is an alias of Long.subtract
string | number | Long | Timestamp
LongWithoutOverridesClass.sub
subtract: (
subtrahend) =>Long
Returns the difference of this and the specified Long.
string | number | Long | Timestamp
Subtrahend
Difference
LongWithoutOverridesClass.subtract
toBigInt: () =>
bigint
Converts the Long to a BigInt (arbitrary precision).
bigint
LongWithoutOverridesClass.toBigInt
toBytes: (
le?) =>number[]
Converts this Long to its byte representation.
boolean
Whether little or big endian, defaults to big endian
number[]
Byte representation
LongWithoutOverridesClass.toBytes
toBytesBE: () =>
number[]
Converts this Long to its big endian byte representation.
number[]
Big endian byte representation
LongWithoutOverridesClass.toBytesBE
toBytesLE: () =>
number[]
Converts this Long to its little endian byte representation.
number[]
Little endian byte representation
LongWithoutOverridesClass.toBytesLE
toInt: () =>
number
Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
number
LongWithoutOverridesClass.toInt
toNumber: () =>
number
Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
number
LongWithoutOverridesClass.toNumber
toSigned: () =>
Long
Converts this Long to signed.
LongWithoutOverridesClass.toSigned
toString: (
radix?) =>string
Converts the Long to a string written in the specified radix.
number
Radix (2-36), defaults to 10
string
RangeError If radix is out of range
LongWithoutOverridesClass.toString
toUnsigned: () =>
Long
Converts this Long to unsigned.
LongWithoutOverridesClass.toUnsigned
unsigned:
boolean
LongWithoutOverridesClass.unsigned
xor: (
other) =>Long
Returns the bitwise XOR of this Long and the given one.
string | number | Long
LongWithoutOverridesClass.xor
readonlystaticMAX_VALUE:Long
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:968
get _bsontype():
"Timestamp"
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:967
"Timestamp"
inspect():
string
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:1005
string
toJSON():
object
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:984
object
$timestamp:
string
staticfromBits(lowBits,highBits):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:997
Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.
number
the low 32-bits.
number
the high 32-bits.
Timestamp
staticfromInt(value):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:988
Returns a Timestamp represented by the given (32-bit) integer value.
number
Timestamp
staticfromNumber(value):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:990
Returns a Timestamp representing the given number value, provided that it is a finite number. Otherwise, zero is returned.
number
Timestamp
staticfromString(str,optRadix):Timestamp
定义于: node_modules/.pnpm/typeorm@0.3.30_ioredis@5.6.0_mongodb@6.19.0_mssql@11.0.1_mysql2@3.15.1_pg@8.11.3_ts-node@10.9_6zvdq3z7xgsf663jy3j6oymho4/node_modules/typeorm/driver/mongodb/bson.typings.d.ts:1004
Returns a Timestamp from the given string, optionally using the given radix.
string
the textual representation of the Timestamp.
number
the radix in which the text is written.
Timestamp
- @142vip/axios
- @142vip/changelog
- @142vip/commit-linter
- @142vip/copyright
- @142vip/data-source
- @142vip/eslint-config
- @142vip/fairy-cli
- @142vip/grpc
- @142vip/nest
- @142vip/nest-redis
- @142vip/nest-typeorm
- @142vip/oauth2.0
- @142vip/open-source
- @142vip/redis
- @142vip/release-version
- @142vip/typeorm
- @142vip/utils