~samwhited/reltime

ref: v0.0.1 reltime/reltime_example_test.go -rw-r--r-- 142 bytes
fdfbe052Sam Whited Initial public release 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package reltime

import (
	"fmt"
	"time"
)

func ExampleAgo() {
	s := Ago(-24 * time.Hour)
	fmt.Println(s)

	// Output:
	// about a day ago
}