clsdate()

버전 1.0.0 (3.89 KB) 작성자: Shengzhao Chen
clsdate()
다운로드 수: 26
업데이트 날짜: 2019/1/2

라이선스 보기

% This program converts for date among solardate, lunardate and ganzhi-
% date from (1900,2,4) to (2099,12,31), except the conversion from gan-
% zhidate to solardate and lunardate.
%
% This Class contains
% (a) five properties:
% year; month; day; hour; isLeap;
% (b) two static methods:
% YearDays=YearInfos2YearDays_GanZhiDate();
% YearDays=YearInfos2YearDays_LunarDate();
% (c) three private methods:
% offset=LunarDate2DayOffset(obj);
% obj=DayOffset2LunarDate(obj,offset);
% obj=DayOffset2GanZhiDate(obj,offset);
% (d) five general methods:
% obj=clsdate(year,month,day,isLeap);
% obj=SolarDate2LunarDate(obj);
% obj=LunarDate2SolarDate(obj);
% obj=SolarDate2GanZhiDate(obj);
% obj=LunarDate2GanZhiDate(obj);
%
% Example:
% [yy,mm,dd]=datevec(date);
% yy=2017;mm=7;dd=30;
% clsdate(yy,mm,dd).YearInfos2YearDays_GanZhiDate();
% clsdate(yy,mm,dd).SolarDate2LunarDate
% clsdate(yy,mm,dd).SolarDate2GanZhiDate
%
% yy=2017;mm=6;dd=8;
% clsdate(yy,mm,dd,1).YearInfos2YearDays_LunarDate;
% clsdate(yy,mm,dd,1).LunarDate2SolarDate
% clsdate(yy,mm,dd,1).LunarDate2GanZhiDate

인용 양식

Shengzhao Chen (2024). clsdate() (https://www.mathworks.com/matlabcentral/fileexchange/69870-clsdate), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0