Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web_bson/src/timestamp.ts>Timestamp

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
class Timestamp
import { Timestamp } from "https://deno.land/x/web_bson@v0.2.5/src/timestamp.ts";

Constructors

new
Timestamp()
new
Timestamp(value: Long | Timestamp)
new
Timestamp(value: { t: number; i: number; })
new
Timestamp(value?: Timestamp | Long | { t: number; i: number; })

Properties

_bsontype: string

Static Properties

readonly
MAX_VALUE

Static Methods

fromBits(lowBits: number, highBits: number): Timestamp

Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.

fromInt(value: number): Timestamp

Returns a Timestamp represented by the given (32-bit) integer value.

fromNumber(value: number): Timestamp

Returns a Timestamp representing the given number value, provided that it is a finite number. Otherwise, zero is returned.

fromString(str: string, optRadix: number): Timestamp

Returns a Timestamp from the given string, optionally using the given radix.