timeutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package timeutil provides time formatting helpers that respect local timezone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(t time.Time) string

FormatDate formats a time.Time as "2006-01-02" in local timezone.

func FormatDateTime

func FormatDateTime(t time.Time) string

FormatDateTime formats a time.Time as "Jan 2, 2006, 3:04:05 PM MST" in local timezone.

func FormatTimestamp

func FormatTimestamp(ts string) string

FormatTimestamp parses an RFC3339 timestamp string and formats it as "Jan 2, 2006, 3:04:05 PM MST" in local timezone.

func FormatTimestampDate

func FormatTimestampDate(ts string) string

FormatTimestampDate parses an RFC3339 timestamp string and formats it as "2006-01-02" in local timezone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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