truncate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

time truncate with Location

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TruncateLocalZone

func TruncateLocalZone(target time.Time, dur time.Duration) time.Time

以时间片截断时间 类似time.Truncate 但是支持国际时间. 例如 day的截断范围有值的差异

func TruncateZone

func TruncateZone(target time.Time, dur time.Duration, in *time.Location) time.Time

以时间片截断时间带time.Location决定 类似time.Truncate 但是支持国际时间. 例如 day的截断范围有值的差异

Types

This section is empty.

Jump to

Keyboard shortcuts

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