Giter Club home page Giter Club logo

Comments (7)

nafiesl avatar nafiesl commented on June 17, 2024 1

OK, I've got your point šŸ‘Œ Thank you for your suggestion šŸ‘

from silsilah.

nafiesl avatar nafiesl commented on June 17, 2024

I think we also need to add yob (year of birth) column on users table, since we not always get exact person date of birth. I often see a genealogy book/paper, a person with year range like: 1920 - 1995.

from silsilah.

biplobice avatar biplobice commented on June 17, 2024

Opinions:

  • Why there are two columns yod (year of death) & dod (date of death)?
    If someone doesn't know the exact date except the year, I think he/she should be compromise. Not the system.
  • $user->age is a very good idea. But why are you want to calculate it only by year? IMO, it should be calculated by exact date and show the year only.

from silsilah.

nafiesl avatar nafiesl commented on June 17, 2024

In the first time I use only date of death, I often found that people don't know exact date of date of their family. They only remember the year. So i fill the date of death with given year followed by -01-01, e.g. 2001-01-01.

But it's not a valid data, right? So i decide to add yod column as the solution and we have a valid data (year of death instead of invalid given date).

Same idea goes to yob (year of birth), which hasn't added, yet.

Why we are calculating the year instead of date of birth? Well, I believe we (usually) only need the years old value.

What do you think @biplobice?

from silsilah.

biplobice avatar biplobice commented on June 17, 2024

Case 1:
In this case, I think your solution is fine.

Case2:
Yeah, we need only the years old value, but from the actual age.
Suppose, my dob is 2000-07-01.
On 2019-01-01, my age is 18 years 6 months 0 days. What we can say 18 year(age) years old.
On 2019-12-01, my age is 19 years 5 months 0 days. What we can say 19 year(age) years old.

But if we, calculate from year to year 2019-2000 = 19, which is incorrect.

In case, where the dob or dod isn't available, we've to calculate from the year.

from silsilah.

nafiesl avatar nafiesl commented on June 17, 2024

@biplobice, I am creating PR #27 for this feature. If you don't mind and have some spare time, kindly please review this feature on person_age branch.

Thank you in advance.:pray:

from silsilah.

biplobice avatar biplobice commented on June 17, 2024

@nafiesl
Sorry, Iā€™m late due to a busiest weekend.
I didn't have opportunity to run, but as your commit seems good to me. Just left one comment.

from silsilah.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.