geezdate

package module
v0.0.0-...-bcba813 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 5 Imported by: 2

README

geezdate

Package geezdate implements functions for converting Gregorian calendar to Geez calander.

Documentation

Overview

Package geezdate implements functions for converting Gregorian calendar to Geez calander.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(date string) string

Convert return a Geez calander date ,take string Gregorian calendar date ("1991-05-24" to 16-9-1983)

Example
var t time.Time
t = t.AddDate(2023, 00, 06) //Jan 7 2024
l := strings.Split(t.String(), " ")
s := Convert(l[0])
fmt.Printf("xmass %s\n", s)
Output:
xmass 28-4-2016

Types

type Gdate

type Gdate struct {
	// contains filtered or unexported fields
}

func Geezday

func Geezday(date string) Gdate

Geezday return a geez date (eg "2024-01-09" to "፴ ታኅሣሥ ፳፻፲፮") taking Gregorian calander date of format yyyy-mm-dd

Example
i := Geezday("2024-01-09")
fmt.Println(i)
Output:
፴ ታኅሣሥ ፳፻፲፮

func Today

func Today() Gdate

Today return a todays date according to Geez calander

func (Gdate) String

func (g Gdate) String() string

Jump to

Keyboard shortcuts

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