I have a time-stamp of a video formatted as "00:00:00,000" such that "%H:%M:%s,%3N".
I am want to eventually use this timestamp as part of an in-interval-p
function where I take two timestamps and a current timestamp and check if I'm currently between the two. The best idea I have is to convert these timestamps to cumulative seconds.
I'm not sure if this is the best way to do it, but here is what I currently have
(require 'dash)
(require 's)
(defvar time-stamp "00:00:52,010")
(s-split "[:|,]" time-stamp)
;; ("00" "00" "52" "010")
What I would like to do, but not sure how, is something like
(map '((lambda (x) (* x 3600.0))
(lambda (x) (* x 60.0))
(lambda (x) (x))
(lambda (x) (/ (float x) 1000.0)))
(s-split "[:|,]" time-stamp))
;; (0.0 0.0 52 0.01)
Is it possible to apply a different function at each index of a list? I would then sum the list to get 52.01
seconds.