On Mon, Oct 3, 2016 at 11:00 AM, <[email protected]> wrote:
> hi guys
>
> i can't undrestand this func, can you say example for this func :
>
> time.Since()
>
> thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
go doc time.Since
func Since(t Time) Duration
Since returns the time elapsed since t. It is shorthand for
time.Now().Sub(t).
See https://golang.org/pkg/time/#example_Duration.
Putting 'golang time.Since() example' into Google search returns a
number of useful references, such as the one below.
http://grokbase.com/t/gg/golang-nuts/1492epp0qb/go-nuts-how-to-round-a-duration
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.