Documentation

Overview

    Package timeutils defines functions to close the gaps present in Golang's default implementation of Time.

    Package timeutils defines functions to close the gaps present in Golang's default implementation of Time.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func LocalMidnight

    func LocalMidnight(t time.Time) time.Time

      LocalMidnight returns the local midnight of the given time.

      func Midnight

      func Midnight(t time.Time) time.Time

        Midnight returns the midnight of the given time.

        func SubtractDays

        func SubtractDays(t time.Time, days uint) time.Time

          SubtractDays subtracts the specified number of days from the given time.

          func UTCMidnight

          func UTCMidnight(t time.Time) time.Time

            UTCMidnight converts the given time to UTC, and returns the UTC time.

            Types

            This section is empty.