if it's some script where users get to enter the date you could try:
Code:
 
alias elapsed_time {
 var %firstdate = $$?="Enter the first date in format day/month/year hh:mm:ss  : "
 var %seconddate = $$?="Enter the second date in format  day/month/year hh:mm:ss  : "
 echo -a Time between the 2 dates is: $duration($calc($ctime(%seconddate) - $ctime(%firstdate)))
}
 


to test it just enter the first time:
20/05/2006 21:23:34
and the second time:
20/06/2006 10:44:21

Last edited by filip_xyz; 06/10/05 11:12 AM.