util

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DailyStringToTime

func DailyStringToTime(s string) time.Time

DailyStringToTime converts formatted(dailyLayout) string to time.

func GetHostname

func GetHostname() string

GetHostname returns hostname.

func HourlyStringToTime

func HourlyStringToTime(s string) time.Time

HourlyStringToTime converts string to formatted(hourlyLayout) string.

func MonthlyStringToTime

func MonthlyStringToTime(s string) time.Time

MonthlyStringToTime converts formatted(monthlyLayout) to time.

func StringToTime

func StringToTime(s string) time.Time

StringToTime converts formatted(utcLayout) string to time.

func TimeToDailyStringFormat

func TimeToDailyStringFormat(t time.Time) string

TimeToDailyStringFormat converts time to formatted(dailyLayout) string.

func TimeToHourlyStringFormat

func TimeToHourlyStringFormat(t time.Time) string

TimeToHourlyStringFormat converts to time to string(hourlyLayout).

func TimeToMonthlyStringFormat

func TimeToMonthlyStringFormat(t time.Time) string

TimeToMonthlyStringFormat converts time to string(monthlyLayout).

func TimeToString

func TimeToString(t time.Time) string

TimeToString converts time to formatted(utcLayout) string.

func TimeToYearlyStringFormat

func TimeToYearlyStringFormat(t time.Time) string

TimeToYearlyStringFormat converts time to formatted(yearlyLayout) string.

func TimestampByMaxTime

func TimestampByMaxTime() int64

TimestampByMaxTime returns max unixnano timestamp.

func YearlyStringToTime

func YearlyStringToTime(s string) time.Time

YearlyStringToTime converts to formatted(yearlyLayout) string to time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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