Options
All
  • Public
  • Public/Protected
  • All
Menu

TS/JS representation of the Fluentd EventTime type

Hierarchy

  • EventTime

Index

Methods

Constructors

Accessors

Methods

Static now

  • Returns the current timestamp as an EventTime

    Similar to Date.now()

    Returns EventTime

    The EventTime representation of the current timestamp

Static fromDate

  • Converts a Date to an EventTime.

    Parameters

    • date: Date

      The Date object to convert

    Returns EventTime

    The equivalent EventTime.

Static fromTimestamp

  • Creates a new EventTime from a numeric timestamp

    Parameters

    • t: number

      The numeric timestamp to convert to an EventTime

    Returns EventTime

    The EventTime representation of the timestamp

Constructors

constructor

  • new EventTime(epoch: number, nano: number): EventTime
  • Creates a new EventTime object

    Parameters

    • epoch: number

      The epoch (seconds since midnight, Jan 1st, 1970)

    • nano: number

      The nano part (epoch + nano = timestamp)

    Returns EventTime

Accessors

epoch

  • get epoch(): number
  • The epoch of this EventTime (seconds since midnight, Jan 1st, 1970)

    Returns number

nano

  • get nano(): number
  • The nano part of this EventTime (epoch + nano = timestamp nanos)

    Returns number

Legend

  • Constructor
  • Method
  • Protected method
  • Static method

Generated using TypeDoc