iso8601_duration

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2022 License: Unlicense Imports: 2 Imported by: 0

README

iso8601_duration

Go Reference

ISO 8601 duration Go utilities.

Install

Via go get tool

$ go get github.com/alfonmga/iso8601_duration

Usage

Browse the docs for the available functions.

Disclaimer

I built this because I wanted to convert YouTube ISO 8601 durations to seconds. Check out the tests and use it at your own risk. The current implementation may panic if an invalid ISO 8601 duration string is provided.

Documentation

Overview

Package iso8601_duration provides ISO 8601 duration utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationStrToSeconds

func DurationStrToSeconds(duration string) uint32

DurationStrToSeconds ISO 8601 duration string to seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL