generation property

int get generation

해당 시간에 태어난 사람의 세대를 계산합니다. ex. 23세 -> 20대, 56세 -> 50대

Implementation

int get generation => age ~/ 10 * 10;