pictime

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: MIT Imports: 3 Imported by: 2

README

pictime

license

Go (golang) functions for formatting a date/time with a picture format.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(format string, t time.Time) (result string, err error)

Format applies the picture format to the time 't' and returns the string or an error

func PadStrRight

func PadStrRight(l int, w string, s string) string

PadStrRight padds string on the right. to a length of 'l' with 'w'

func ZeroPadRight

func ZeroPadRight(l int, s string) string

ZeroPadRight padds an string 's' with 0's on the right to the desired length, 'l'

Types

This section is empty.

Jump to

Keyboard shortcuts

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