chrono

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEpochSecondI64

func FormatEpochSecondI64(epoch int64, ref time.Time) string

FormatEpochSecondI64 follows the same conventions as FormatEpochSecondString.

func FormatEpochSecondString

func FormatEpochSecondString(epoch string, ref time.Time) string

FormatEpochSecondString takes a string, parses to to an epoch second and formats it according to the following rules: A simple time HH:MM:SS is displayed if the parsed date is today. Day, month and time is returned if the parsed date is the current year. Year, day, month and time is returned in all other cases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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