tm

package
v2.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tm assistant methods related to time reporting

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDuration

func ParseDuration(dura string) (time.Duration, error)

ParseDuration parse duration by input string data like day/d(default)/天,hour/h/时,minute/m/分,second/s/秒

like: -10d73s, 73h11m1002s, 13分12秒。"-"/"减"/“负” are similar terms

func SpendFn

func SpendFn() func() time.Duration

SpendFn Get the program spend time for any format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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