![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Days difference between two dates | Data469 | Shell Programming and Scripting | 6 | 03-26-2008 12:32 PM |
| compare dates | ragha81 | Shell Programming and Scripting | 2 | 11-01-2006 03:17 PM |
| How to get the difference between dates?Can i treat as string? | EDBGSK | Shell Programming and Scripting | 3 | 10-25-2006 09:18 AM |
| Difference between two dates in no of days ??? | csaha | Shell Programming and Scripting | 1 | 01-13-2006 03:44 AM |
| Searching between dates | Khoomfire | Shell Programming and Scripting | 9 | 08-22-2005 08:11 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Difference between two dates...
Hi All,
Wish you a Happy New year... I have to find the difference between two dates, the result should be the number of days. I have seen the "datecalc" function. Its good, can I have any other alternative. Thanks in Advance Raju |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Search through Yesterdays Date/Date Arithmetic |
|
#3
|
|||
|
|||
|
Logic behind date2jd function??
Thanks for the response.
Can you pls explain the part of logic behind date2jd. ((standard_jd = day - 32075 + 1461 * (year + 4800 - (14 - month)/12)/4 + 367 * (month - 2 + (14 - month)/12*12)/12 - 3 * ((year + 4900 - (14 - month)/12)/100)/4)) ((jd = standard_jd-2400001)) Regards, Raju |
|
#4
|
||||
|
||||
|
Perderabo picked up the algorithm from the internet.
Googling gave me this - Julian Day Numbers Read through 9.Conversion Algorithms. That should answer your question. Vino |
|
#5
|
|||
|
|||
|
Thanks Vino
|
|||
| Google The UNIX and Linux Forums |