milli

package
Version: v0.0.0-...-3fc3a86 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: MIT, MIT Imports: 1 Imported by: 0

README

milli

Utility conversion from time to milliseconds and vise versa.

GoDoc

Documentation

Overview

Package milli provide convience methods for converting between milliseconds, time.Duration, and time.Time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(timestamp int64) time.Duration

Duration converts the millisecond duration into a duration

func DurationMilli

func DurationMilli(d time.Duration) int64

DurationMilli converts d into a millisecond duration

func Time

func Time(timestamp int64) time.Time

Time converts the millisecond timestamp into a time

func Timestamp

func Timestamp(t time.Time) int64

Timestamp converts t into a millisecond timestamp

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL