Comments (7)
OK, I've got your point š Thank you for your suggestion š
from silsilah.
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.
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.
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.
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.
@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.
@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)
- Upload maksimal ukuran foto HOT 2
- Upload di cpanel tidak bisa update foto HOT 1
- New Feature: Login with Google HOT 4
- Docker image? HOT 2
- Istri HOT 3
- Cetak HOT 1
- Nama HOT 1
- I have many questions about your project HOT 2
- Search for the fifth or fourth grandfather HOT 1
- Anak Berdasarkan Pernikahan HOT 2
- Can not upload photo profil HOT 1
- Tambah Foto HOT 1
- Menampilkan pasangan di family tree HOT 4
- Eror saat backup database HOT 2
- Tampilan Family Tree berupa foto-foto HOT 4
- Foto Tidak Tampil Setelah Upload ke CPanel HOT 5
- harus login sebelum akses HOT 5
- Tidak bisa menampilkan foto di web HOT 3
- Menampilkan Urutan Anak ke 1 , Anak ke 2 secara berurutan di Family Chart HOT 11
- problem install di terminal cpanel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silsilah.