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 4, 2024
1 parent 35cfca4 commit 4bcbddf
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 @@ -545,6 +545,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 4bcbddf

Please sign in to comment.