HUB
Sign inSign up
pg-ethopic logo

frectonz/pg-ethopic

By frectonz

•Updated almost 2 years ago

A PostgreSQL extension for formatting ethiopic dates and numbers.

Image
Databases & storage
0

906

frectonz/pg-ethopic repository overview

⁠pg-ethopic

More on GitHub⁠

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);
Tag summary
Recent tags
Content type
Image
Digest
sha256:036340473…
Size
168.1 MB
Last updated
almost 2 years ago
docker pull frectonz/pg-ethopic:latest