Jump to content

Wikifunctions:Type proposals/Igbo calendar month

From Wikifunctions

Done Igbo calendar month (Z16927)

Summary

An enumeration for the thirteen months of the Igbo calendar.

Uses

Why should this exist

To represent the thirteen months of the Igbo calendar, it is important to recognize its significance for the Igbo people in terms of worship, festivals, and commerce. The Igbo calendar plays a crucial role in determining the appropriate days for worship, including performing specific rites. It also identifies the months in which various festivals occur, helping the Igbo people plan and participate in these cultural events. Additionally, the calendar aids in knowing the exact days on which their market days fall, facilitating trade and commerce.

An already created function that would benefit from this type(and probably should be updated once the type is available):

What kinds of functions would be created using this

  • It can be used to build a function that calculates the number of Eke, Orie, Afor, and Nkwo days within a date interval (e.g., Ọnwa Ana 2024 to Ọnwa Ilo Mmụọ 2025).
  • Translate Months to numbers and back.
  • Following and previous months (also, more than just the immediately following or previous)

What standard concepts, if any, does this align with

the igbo calendar

Structure

Like all enumeration types, the igbo calendar month consists of a single key. The key is an identity key.


values

  1. Ọnwa Mbụ
  2. Ọnwa Abụo
  3. Ọnwa Ife Eke
  4. Ọnwa Anọ
  5. Ọnwa Agwụ
  6. Ọnwa Ifejiọkụ
  7. Ọnwa Alọm Chi
  8. Ọnwa Ilo Mmụọ
  9. Ọnwa Ana
  10. Ọnwa Okike
  11. Ọnwa Ajana
  12. Ọnwa Ede Ajana
  13. Ọnwa Ụzọ Alụsị


{
  "type": "Igbo calendar month",
  "value": "Ọnwa Agwụ"
}
{
  "Z1K1": "Zxyz",
  "ZxyzK1": "0"
}


Validator

The validator ensures that:

  • the identity key points directly to a value of igbo calendar month


Identity

Two igbo calendar months are the same if their identity is the same ZID

Converting to code

From my search most of the modern programming languages doesn’t have other local calendars (like Chinese, Jewish, Islamic and others) pre-built in them apart from Gregorian calendar so i think that igbo calendar month fit equal with Gregorian calendar when translating the months to numbers. So in Javascript it start from 0 - 12 and in Python it start from 1 - 13.

Python

JavaScript

Renderer

As for all enumerations, the renderer displays the label of the value object.


Parsers

As with all enumerations, there is no parser, but a selector based on pre-defined values.

Alternatives

Instead of an enumeration with all twelve months, we could represent months as numbers (either 0-based as in JavaScript, or 1-based as in Python).


Comments