반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 카카오
- wrap
- M1
- VSCode
- 춘식
- GetX
- listview
- ios
- 데스크셋업
- datetime
- 간단리뷰
- swift
- sqflite
- list
- xcode
- 데스크테리어
- TextField
- 내돈내산
- Android
- 플러터
- 라이언
- error
- react
- AppleSilicon
- AppBar
- GitHub
- visualstudiocode
- Git
- Flutter
- database
Archives
- Today
- Total
welcome to my blog
[Flutter] 윤년계산하기 - dart 본문
728x90
윤년계산
if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)){
int day = 29;
}
달의 마지막날계산
int endDay(int year, int month){
DateTime date = DateTime(year, month+1, 0);
return date.day;
}
728x90
반응형
'Flutter' 카테고리의 다른 글
[Flutter] Command PhaseScriptExecution failed with a nonzero exit code (0) | 2023.02.09 |
---|---|
[Flutter] 아이폰 빌드 / Developer Mode Disabled (0) | 2023.02.09 |
[Flutter] SmartRefresher 정리 (0) | 2022.02.16 |
[Flutter] RxMap 사용 (0) | 2022.01.20 |
[Flutter] Wrap, Chip, FlowLayout (0) | 2022.01.11 |