dateTime

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

* * @Author: TheLife * @Date: 2020-11-7 12:56 上午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnixRange

func UnixRange(timeType UnixRangeType, t time.Time) (start, end int64)

获取一个时间的开始与结束的时间戳

Types

type Since

type Since struct {
	Time time.Time
}

func (*Since) Dot

func (s *Since) Dot(isLog bool)

func (*Since) Start

func (s *Since) Start()

type UnixRangeType

type UnixRangeType uint8
const (
	Month UnixRangeType = iota
	Day
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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