Skip to content

Commit

Permalink
add jsdoc for added function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Nov 10, 2024
1 parent 9c7b8c9 commit 17334f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ export function formatDurationAsTimestamp(lengthSeconds) {
return timestamp
}

/**
* @param {string} timestamp hh::mm:ss
* @returns {number} timestamp converted to seconds
*/
export function timestampToDuration(timestamp) {
const splitTimestamp = timestamp.split(':')
let seconds = Number(splitTimestamp.at(-1))
Expand Down

0 comments on commit 17334f4

Please sign in to comment.