From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Lelisa Diriba <lelisa0404(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Ethiopian calendar year(DATE TYPE) are different from the Gregorian calendar year |
Date: | 2017-12-26 08:14:32 |
Message-ID: | CAFj8pRB+6bfNdWybmx1t6aq-EjEv9q1As=3YHGYRL=ZddWQeXw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
2017-12-26 8:23 GMT+01:00 Lelisa Diriba <lelisa0404(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Kyotaro HORIGUCHI | 2017-12-26 09:19:16 | Re: Protect syscache from bloating with negative cache entries |
Previous Message | Andres Freund | 2017-12-26 07:30:07 | Re: Getting rid of "tuple concurrently updated" elog()s with concurrent DDLs (at least ALTER TABLE) |