wtime

package
v0.0.0-...-155bba5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DateForm = "01/2006"

DateForm basic date format

Variables

This section is empty.

Functions

func CompareStartDate

func CompareStartDate(startDate string, entryDate int64) bool

CompareStartDate @todo Add Error Handling

func DehumanizeDuration

func DehumanizeDuration(dura string) (int64, error)

DehumanizeDuration converts string in format 1w1d1h1m into number of seconds

func GetDurantionString

func GetDurantionString(duration int64) string

GetDurantionString returns duration converted to a string with s/m/h

func GetStartEndMonth

func GetStartEndMonth(startD time.Time) (int64, int64)

GetStartEndMonth gets first second of a month described in startD and first second of next month. XXX Error Handling

Types

This section is empty.

Jump to

Keyboard shortcuts

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