package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 10, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
iso8601
iso8601 is a simple Go package for formatting time.Duration
according to the ISO 8601 format.
package main
import (
"fmt"
"time"
"github.com/p3lim/iso8601"
)
func main() {
t := time.Now()
time.Sleep(5 * time.Second)
fmt.Println(iso8601.Format(time.Since(t)))
}
Documentation
¶
The iso8601 package formats time.Duration in the ISO 8601 format.
Returns a ISO 8601 formatted string from a time.Duration instance.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.