int eunlinage() {
return (DateTime.now().difference(DateTime(1990, 12, 23)).inDays / 365).floor();
}
/// If the code snippet above doesn't work for you, call the [eunlin_age] function below.
int eunlin_age() {
DateTime birth = DateTime(1990, 12, 23);
DateTime today = DateTime.now();
int age = today.year - birth.year;
if (today.month < birth.month ||
(today.month == birth.month && today.day < birth.day)) {
age--;
}
return age;
}
leeeunlin Goto Github PK
Name: LeeEunlin
Type: User
Company: Moon Corporation
Bio: Cross platform app developer, I don't have a social media account, Please contact me via email or Discord
Location: Republic of Korea (South)