palm-pdb
    Preparing search index...

    Class DatabaseDate

    A date (year, month, DOM) encoded as a 16-bit integer.

    There is no timezone information in the serialized form, so we assume UTC when converting to / from JavaScript Date objects.

    Hierarchy

    • SerializableWrapper<Date>
      • DatabaseDate
    Index

    Constructors

    Properties

    dayOfMonth: number = 1

    Day of the month (1st = 1).

    month: number = 0

    Month (Jan = 0, Dec = 11).

    year: number = ...

    Year.

    Accessors

    • get value(): Date

      Returns Date

    • set value(newValue: Date): void

      Parameters

      • newValue: Date

      Returns void

    Methods

    • Type Parameters

      • JsonValueT extends Date

      Parameters

      Returns void

    • Deserializes a buffer into this value.

      Parameters

      • buffer: Buffer
      • Optionalopts: DeserializeOptions

      Returns number

      Number of bytes read.

    • Computes the serialized length of this value.

      Parameters

      • Optional_opts: SerializeOptions

      Returns number

    • Serializes this value into a buffer.

      Parameters

      • Optional_opts: SerializeOptions

      Returns Buffer<ArrayBuffer>

    • Creates a new instance of this value by deserializing from a buffer.

      Type Parameters

      • T extends Serializable

      Parameters

      • this: new () => T
      • buffer: Buffer
      • Optionalopts: DeserializeOptions

      Returns T

    • Create a new instance of this wrapper class from a raw value.

      Type Parameters

      • ValueT
      • WrapperT extends SerializableWrapper<ValueT>

      Parameters

      Returns WrapperT