https://github.com/bastidanicolas/age-calculator
Calculate the period that goes from one time to another, could be from X time to pressent time or X time to Y time.
https://github.com/bastidanicolas/age-calculator
Last synced: 6 months ago
JSON representation
Calculate the period that goes from one time to another, could be from X time to pressent time or X time to Y time.
- Host: GitHub
- URL: https://github.com/bastidanicolas/age-calculator
- Owner: BastidaNicolas
- Created: 2022-10-01T16:07:08.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T16:15:25.000Z (about 3 years ago)
- Last Synced: 2024-10-12T13:09:22.561Z (12 months ago)
- Language: Java
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# age-calculator
Calculate the period that goes from one time to another, could be from X time to pressent time or X time to Y time.# Task
### API manejo de fecha
Se necesita el desarrollo de una API con Spring Boot que sea capaz de recibir como parámetro la fecha de nacimiento de una persona dividida en tres partes: día, mes y año. A partir de la recepción de estos tres valores, la API debe ser capaz de devolver la cantidad de años con los que cuenta la persona en el día de la fecha.
Por ejemplo, si hoy es 16/08/2021 y la fecha de nacimiento de la persona es 23/11/1991, la solicitud debería verse de la siguiente manera: localhost:8080/calcularedad/23/11/1991 y como respuesta se debería obtener 29 años.
### Calls
#### Calculate from X to current date
/calcularedad/{day}/{month}/{year}
#### Calculate from X to Y date
/calculate/{day}/{month}/{year}/to/{mday}/{mmonth}/{myear}
# Status
:heavy_check_mark: Completed
Made the response of the persons age more acurate using `Period` method and added an extra call that lets you place a custom "max-date".