jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
hi ,
can any one help me out with logic to find difference between to timestamps including Nsec,
i have logic to find it in days: hours :minutes :seconds :nsec
i need logic to convert this days into months and years too
ex: TS1=2007-12-25-21.45.23.453434
TS2=2006-10-01-20.21.59.999766
TO FIND: DIFF = TS2 -TS1 IN years,months,days,hh,mn,ss,nsec
note: please consider months criteria i.e jan 31 days , feb 28.....
and leap years to
regards,
Jaspal singh virk
+919833814470 |
|