Function convertSecondsToJiraTime

  • Convert seconds in a defined unit of time.

    Parameters

    • seconds: number
    • unit: "days" | "hours" | "minutes" | "prettyPrint"
    • isWithDimension: boolean = true

    Returns Promise<string>

    Remarks

    Units and formats

    • prettyPrint: {}w {}d {}h {}m
    • minutes: {}m
    • hours: {}h
    • days: {}d

    Example

    SR.time.convertSecondsToJiraTime(1234567, 'prettyPrint')
    // expected result: 8w 2d 6h 56m