본문 바로가기 메뉴 바로가기

Only I Can

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Only I Can

검색하기 폼
  • 분류 전체보기 (181)
    • C reative (26)
      • Writing (20)
      • 1Day 1Ted (5)
    • Game (6)
      • Poly Bridge (6)
    • Hobby (9)
      • B ook (2)
      • M ovie (5)
      • M usical (0)
      • H ave It (1)
      • U sefull Program (1)
    • P rogramming (135)
      • V studio (6)
      • C # (13.05~) (79)
      • E ncryption (5)
      • C conf (8)
      • L inux (7)
      • D B (15)
      • E tc (8)
      • M ade by iswoo (7)
  • 방명록

2013/05/22 (2)
C# DateTime을 이용해서 년도와 달을 알때, 마지막 날짜 구하기

우선 C 알고리즘으로 개발하려면 int nCurYear = 현재 년도;int nCurMonth = 현재 달;int nMaxDay = 0; 를 TIme struct 를 이용해서 구한다음에.. if( nCurMonth == 1 || nCurMonth ==3 || nCurMonth == 5 ... ){nMaxDay = 31;}else if( nCurMonth == 4 || nCurMonth == 6 || nCurMonth == 9 ... ){nMaxDay = 30;}else{if( ( nCurYear % 4 )) ... //윤년 계산 후 맞으면 29, 아니면 28} 등의 계산을 거쳐야 하지만.. 단 한줄 DateTime.DaysInMonth( int Year, int Month ); return 타입은 당연히..

P rogramming/C # (13.05~) 2013. 5. 22. 16:17
C# Delay 메쏘드

/// /// Delay 함수 MS/// /// (단위 : MS)/// private static DateTime Delay(int MS){ DateTime ThisMoment = DateTime.Now; TimeSpan duration = new TimeSpan(0, 0, 0, 0, MS); DateTime AfterWards = ThisMoment.Add(duration); while (AfterWards >= ThisMoment) { System.Windows.Forms.Application.DoEvents(); ThisMoment = DateTime.Now; } return DateTime.Now;} 사용법 : Delay(1000) // 1000 = 1초 출처 : http://www.bluene...

P rogramming/C # (13.05~) 2013. 5. 22. 09:25
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
  • Only I Can:: What about Z..
  • Only I Can Ted:: How comp..
  • Only i Can TED) What six..
  • Only i Can TED) Meet Spot..
최근에 달린 댓글
  • CheckForIllegalCrossThreadCa..
  • 크로스쓰레드가없이 돌아가나요?
  • 별말씀을
  • 덕분에 좋은거 알아갑니다.
Total
331,919
Today
0
Yesterday
89
링크
  • 리나루카스 시선
  • 다크 프로그래머
  • 개뼈다귀
  • alice
  • 찌혀니의 Another world 별천지
  • 세상의나라
  • 행복결말 자막
  • Funny Candies
  • winner
  • 네가 몰랐던 공부법
TAG
  • PolyBridge1-5
  • c#
  • 좋은글귀
  • PolyBridge1-4
  • 리눅스
  • PolyBridge
  • PolyBridge하는법
  • C# 판넬 예제
  • 알프스목초지1-4
  • 폴리브릿지
  • DaleEvans
  • PolyBridge1-2
  • ted
  • C# 패널 예제
  • 알프스목초지1-3
  • 알프스목초지1-2
  • 믿는다는것
  • 1Day1Sentence
  • 알프스목초지1-1
  • 자신만의향
  • C# 패널
  • Nina Fedoroff
  • PolyBridge1-3
  • Joseph Redmon
  • 알프스목초지1-5
  • OnlyICan
  • 인생의시간
  • 사람의인생
  • PolyBridge1-1
  • 분할작업
more
«   2013/05   »
일 월 화 수 목 금 토
      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 29 30 31  
글 보관함
  • 2017/08 (4)

Blog is powered by Tistory / Designed by Tistory