Compare Times

Examples Filter
package main

import (
    "fmt"
    "time"
)

func main() {
    p := fmt.Println

    now := time.Now()

    then := time.Date(
        2009, 11, 17, 20, 34, 58, 651387237, time.UTC)

    p(then.Before(now))
    p(then.After(now))
    p(then.Equal(now))
}