Is there any tool in Solaris UNIX (so no GNU tool available) to subtract dates? I know that in Linux we have gawk
that can subtract one date from another. But in Solaris the maximum we have is nawk
(improved awk
) which cannot perform date calculations. Also I cannot use perl.
Is there any way to do date calculations like 20100909 - 20001010
?
UPDATE: Is bc
able to perform dates calculations?