A PostgreSQL extension for formatting ethiopic dates and numbers.
906
A PostgreSQL extension for formatting ethiopic dates and numbers.
-- Load PG extension
CREATE EXTENSION pg_ethopic;
-- Format the current date as an ethiopic date.
SELECT ethopic_date(CURRENT_DATE);
-- Format the current date as an ethiopic date with a custom format template.
SELECT ethopic_date(CURRENT_DATE, '{year}/{month}/{day}');
-- Format a given number as an ethopic number.
SELECT ethopic_number(420);
docker pull frectonz/pg-ethopic:latest