Command-line-interface (CLI) calculator to work out the difference between 2 dates



Hi all.

Does anyone have any suggestions for a command-line-interface (CLI)
calculator that can work out the difference between 2 (gregorian)
dates (i.e. that is calendar aware). My favourite cli calculator
("bc") doesn't seem to have any knowledge of the gregorian calendar.

Just to make it clear, I'd like to be able to type in:

20080824-20080724 and it would work out the answer as 31

(I'm happy to use any date format for input - I've only used ISO8601
as an example)

J :-)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Command-line-interface (CLI) calculator to work out the difference between 2 dates
    ... Does anyone have any suggestions for a command-line-interface (CLI) ... calculator that can work out the difference between 2 ... doesn't seem to have any knowledge of the gregorian calendar. ...
    (Debian-User)
  • Re: Command-line-interface (CLI) calculator to work out the difference between 2 dates
    ... Does anyone have any suggestions for a command-line-interface (CLI) ... calculator that can work out the difference between 2 ... doesn't seem to have any knowledge of the gregorian calendar. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: FAQ faults
    ... as to which standard is used to make the calculation. ... British Calendar Act of 1751 for Leap Year, and its Annex for Easter. ... multiple non-equivalent standards for our present (Gregorian) Calendar. ...
    (comp.unix.shell)
  • Re: Date arithmetic and Zune bug
    ... | One important bit about anything dealing with Gregorian dates is the ... The Long, Painful History of Time ... calendar back two months... ... to retain the leap day in February. ...
    (comp.arch)
  • Re: Calculating the age given DOB
    ... working in complete months in Gregorian calendars can be tricky. ... aware there isn't a "standard" Ruby way of calculating periods between ... calendar after the datethat the Julian calendar was corrected. ... There are some tricky problems to be solved, ...
    (comp.lang.ruby)