Counting the year in julian dates
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
James Tursa
am 13 Nov. 2012
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?
Antworten (1)
Tom W
am 29 Jul. 2014
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 Kommentare
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!