diff --git a/src/components/Atoms/SafeHtml.vue b/src/components/Atoms/SafeHtml.vue index e5abf3b..53880af 100644 --- a/src/components/Atoms/SafeHtml.vue +++ b/src/components/Atoms/SafeHtml.vue @@ -1,22 +1,41 @@ diff --git a/src/utils/time.ts b/src/utils/time.ts index 7ff0d4c..bbe375c 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -51,3 +51,16 @@ export const durationToSeconds = (duration: string): number => { seconds += splitDuration.length > 2 ? parseInt(splitDuration[2]) * 60 * 60 : 0 return seconds } + +/** + * Convert splitted time to seconds + * @param {number} hours The number of seconds + * @param {number} minutes The number of seconds + * @param {number} seconds The number of seconds + * @return {number} + */ +export const timeToSeconds = ( + hours: number, + minutes: number, + seconds: number, +): number => hours * 3600 + minutes * 60 + seconds