tool

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2016 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : time.go
  • author : jarryliu
  • date : 2015-12-28 03:38
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocation

func GetLocation(ip string) string

func GetStartDate

func GetStartDate(t time.Time) time.Time

获取起始日期

func GetTodayStartEndUnix

func GetTodayStartEndUnix(t time.Time) (int64, int64)

获取一天开始和结束的时间戳

func GetYesterdayStartDate

func GetYesterdayStartDate() time.Time

获取昨天的起始时间

func LastDay

func LastDay(year int, m time.Month) int

获取一个月的最后一天

Types

This section is empty.

Jump to

Keyboard shortcuts

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