Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Science and Engineering > Mathematics

    datemath 2.0.10

    Download button

    No screenshots available
    Downloads: 482  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steve Friedl | More programs
    GPL / FREE
    June 16th, 2008, 05:09 GMT
    ROOT / Science and Engineering / Mathematics

     Read user reviews (0)  Refer to a friend  Subscribe

    datemath description

    datemath is a console tool that allows you to manipulate dates mathematically.

    datemath is a console tool that allows you to manipulate dates mathematically.

    Developer comments

    Too many times we have needed to do a bit of math on a date -- say, "today + 7 days" -- but in traditional MM/DD/YYYY format this is really tricky (especially in a shell script). A result of this need we built the datemath tool which can perform these functions from the command line or from a shell script. Examples:

    $ datemath today + 5
    06/23/2003

    $ datemath '12/25/2003 - today'
    188

    $ datemath today + 5 weeks
    07/25/2003

    when will my machine be up for one year?
    $ uptime
    11:09am up 317 days, 15:38, 7 users, load average: 0.16, 0.04, 0.01
    $ datemath today + 365 - 317
    10/24/2003


    The expressions accepted by datemath are straightforward and moderately flexible. The grammer is defined to reject most things that don't make any sense (such as adding two dates together), while allowing most things that do.

    Requirements:

    · GNU flex
    · Bison



    Product's homepage

    Requirements:

    · GNU flex
    · Bison

      


    TAGS:

    date manipulator | mathematical date | date function | date | mathematical | manipulation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM