Re: Ethiopian calendar year(DATE TYPE) are different from theGregorian calendar year - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Ethiopian calendar year(DATE TYPE) are different from theGregorian calendar year
Date
Msg-id CAFj8pRB+6bfNdWybmx1t6aq-EjEv9q1As=3YHGYRL=ZddWQeXw@mail.gmail.com
Whole thread Raw
In response to Ethiopian calendar year(DATE TYPE) are different from the Gregoriancalendar year  (Lelisa Diriba <lelisa0404@gmail.com>)
List pgsql-hackers
Hi

2017-12-26 8:23 GMT+01:00 Lelisa Diriba <lelisa0404@gmail.com>:
In Ethiopia the year have 13 months and but in Gregorian calendar the year have 12 months,
The Ethiopian society's are want to use his Ethiopian calendar year,i have the algorithm,
but the way i add to the postgresql source code as EXTENSION? or to the backend(to kernel)? 
13th month have 5 days and in fourth year 13th month have 6 days.that means 1 year have 365.25 days,my algorithm converts  Gregorian calendar year to Ethiopian calendar year.

It can be done via extension - you should to implement own date and timestamp type with own input, output functions

Regards

Pavel

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Getting rid of "tuple concurrently updated" elog()s with concurrent DDLs (at least ALTER TABLE)
Next
From: Murtuza Zabuawala
Date:
Subject: [pgAdmin4][Patch]: Fix "Create - Table" dialog UI quirks