currentTime: {
    micros: () => string;
    millis: () => string;
    ms: () => string;
    nanos: () => string;
    ns: () => string;
    s: () => string;
    seconds: () => string;
    us: () => string;
} = ...

Exposes functions that creates strings that represent a timestamp that can be used in the line protocol. Micro and nano timestamps are emulated depending on the js platform in use.

Type declaration

  • micros: () => string
  • millis: () => string
  • ms: () => string
  • nanos: () => string
  • ns: () => string
  • s: () => string
  • seconds: () => string
  • us: () => string