clsdate()

clsdate()
26 Downloads
Aktualisiert 2. Jan 2019

Lizenz anzeigen

% 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

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0