dati

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 5 Imported by: 1

README

dati

Date & time utilities

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DayNames = map[string][]string{
	"fre": {"lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche"},
	"eng": {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"},
	"dut": {"maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag", "zondag"},
}
View Source
var MonthNames = map[string][]string{
	"fre": {"janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"},
	"eng": {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"},
	"dut": {"januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"},
}
View Source
var Months30 = map[int]bool{
	4:  true,
	6:  true,
	9:  true,
	11: true,
}
View Source
var Months31 = map[int]bool{
	1:  true,
	3:  true,
	5:  true,
	7:  true,
	8:  true,
	10: true,
	12: true,
}

Functions

func Day

func Day[D time.Weekday | int | int64](dayno D, lang string, length int) string

func Format

func Format(t *time.Time, format string, lang string) (datetime string, err error)

func IndexMonth

func IndexMonth(start string, lang string) int

func Month

func Month[M time.Month | int | int64](monthno M, lang string, length int) string

func Parts

func Parts(t *time.Time, lang string) (parts map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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