timeutils

package module
v0.0.0-...-d1dd9e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2017 License: GPL-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaylightSavingsOffset

func DaylightSavingsOffset(t time.Time) int

DaylightSavingsOffset returns the DST offset of the specified time

func LocalUnix

func LocalUnix(t time.Time) int64

LocalUnix returns the unix timestamp of the specified time with the local timezone offset and DST added

func TimezoneOffsetNoDST

func TimezoneOffsetNoDST(t time.Time) int

TimezoneOffsetNoDST returns the timezone offset without the DST component

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL