Function getMomentStamp

Calculates the moment stamp based on the given end date and dimension. The moment stamp represents the difference between the end date and the start date in the specified dimension.

  • Parameters

    • Optionalend: Dayjs = ...

      The end date. Defaults to the current date and time.

    • Optionaldimension: ManipulateType = DIMENSION

      The dimension to calculate the difference in. Defaults to DIMENSION.

    Returns number

    • The moment stamp representing the difference between the end date and the start date.