format

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeHour added in v1.0.7

func NormalizeHour(hr int, tz int) int

NormalizeHour returns the hour (specified in the hr parameter) in local timezone (specified in the tz parameter).

func PadWithZero

func PadWithZero(i int) string

PadWithZero returns a string representation of i (0 <= i < 10) padded with '0' in front, else it returns a string representation of i. For example: '0' => '00', '1' => '01' etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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