Sign inSign up

frectonz/pg-ethopic

By frectonz

•Updated over 1 year ago

A PostgreSQL extension for formatting ethiopic dates and numbers.

Image
Databases & storage
0

801

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

Content type

Image

Digest

sha256:036340473…

Size

168.1 MB

Last updated

over 1 year ago

docker pull frectonz/pg-ethopic