from functorflow import f print(f('sec', '00:22:17')) # '1337'
Оригинал: “https://dev.to/samandar/convert-a-time-string-to-seconds-00-22-17-1337-1jlj”
От Functorflow Импорт F Печать (F (‘SEC’, ’00: 22: 17 ‘)) # ‘1337’ Введите полноэкранный режим … Теги с рецентом, Python, Functorflow.
from functorflow import f print(f('sec', '00:22:17')) # '1337'
Оригинал: “https://dev.to/samandar/convert-a-time-string-to-seconds-00-22-17-1337-1jlj”