Find the answer to your Linux question:
Results 1 to 3 of 3
I want to do date calculations in the bash terminal on my n900. example: today +2 days = 3/30/2013. I know "date" is supposed to do this and the function ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    15

    date calculation on maemo5(Debian derivative)


    I want to do date calculations in the bash terminal on my n900.
    example: today +2 days = 3/30/2013.
    I know "date" is supposed to do this and the function exist on my device. however every online reference seems to show a different syntax and non of them seem to work on my device.
    if you know the correct syntax for Debian/Maemo5 any help would be much appreciated.
    thanks

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Slackware, {Free, Open, Net}BSD, Solaris
    Posts
    1,286
    Hi.

    For systems similar to:
    Code:
    OS, ker|rel, machine: Linux, 2.6.26-2-amd64, x86_64
    Distribution        : Debian GNU/Linux 5.0.8 (lenny) 
    date (GNU coreutils) 6.10
    Code like this should work:
    Code:
    % date --date="today + 2 days"
    Sat Mar 30 04:04:40 CDT 2013
    (Also worked in several other GNU/Linux systems, Fedora, openSUSE, etc., even Minix 3.)
    See info date for details.

    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  3. #3
    Just Joined!
    Join Date
    Mar 2013
    Posts
    15
    unfortunately my device says --date is an unrecognized option. also it appears manages are not in the main repo for my dist ( busybox *****(Debian**legal-losso**)multi-cast binary). however now I know I need to find more specific references because my distro is different. Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •