import "github.com/leekchan/timeutil"
Strftime formats time.Date according to the directives in the given format string. The directives begins with a percent (%) character.
type Timedelta struct { Days, Seconds, Microseconds, Milliseconds, Minutes, Hours, Weeks time.Duration }
Timedelta represents a duration between two dates. All fields are optional and default to 0. You can initialize any type of timedelta by specifying field values which you want to use.
Abs returns the absolute value of t
Add returns the Timedelta t+t2.
Duration() returns time.Duration. time.Duration can be added to time.Date.
String returns a string representing the Timedelta's duration in the form "72h3m0.5s".
Subtract returns the Timedelta t-t2.
Package timeutil imports 3 packages (graph) and is imported by 5 packages. Updated 2016-07-17. Refresh now. Tools for package owners.