addDuration | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function addDuration

    • Add a duration (time) to a date

      Parameters

      • startingdate: Date

        Date to start from

      • duration: string | Partial<Duration>

        Duration to add (as object or as ISO8601 duration string, eg "P1Y2M3DT4H5M6S")

      Returns Date

    • Add a duration (time) to a date

      Parameters

      • startingdate: Instant

        Date to start from

      • duration: string | Partial<Duration>

        Duration to add (as object or as ISO8601 duration string, eg "P1Y2M3DT4H5M6S")

      Returns Instant