strutil

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package strutil provides conversion routines from decimal times to their equivalent strings. (e.g. 9.5 to "9:30")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecimalTimetoHourMinSec

func DecimalTimetoHourMinSec(in float64) (out string)

DecimalTimetoHourMinSec converts a time in floating point decimal minutes to a string of hh:mm:ss (e.g. 67.5 to "01:07:30").

func DecimalTimetoMinSec

func DecimalTimetoMinSec(in float64) (out string)

DecimalTimetoMinSec converts a time in floating point decimal minutes to a string of mm:ss. (e.g. 9.5 to "9:30") Does not handle input values > one hour. See function decimalTimetoHourMinSec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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