Counting the year in julian dates
1 回表示 (過去 30 日間)
古いコメントを表示
I need to ask for the hire date and current date of an employee, convert it to julian date, and spit out how many days they've worked there. I know how to figure out julian date in days. How do I take care of the year issue?
1 件のコメント
James Tursa
2012 年 11 月 13 日
My guess is you are confusing Julian Date with day-of-the-year. Can you please provide a specific example of inputs and desired output?
回答 (1 件)
Tom W
2014 年 7 月 29 日
You don't need julian days, all you need is today() minus hire date (with format). Difference in days will be the output.
or
gregorian("ThisYear", "ThisMonth", "ThisDay") - gregorian(Yr1,Mo1,Day1);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!