go: github.com/shurcooL/go/timeutil Index | Files

package timeutil

import "github.com/shurcooL/go/timeutil"

Package timeutil provides a func for getting start of week of given time.


Package Files


func StartOfDay Uses

func StartOfDay(t time.Time) time.Time

StartOfDay returns time at start of day of t.

func StartOfWeek Uses

func StartOfWeek(t time.Time) time.Time

StartOfWeek returns time at start of week of t.

Package timeutil imports 1 packages (graph) and is imported by 5 packages. Updated 2016-12-26. Refresh now. Tools for package owners.