gnu date is available as a binary or as source for almost every platform - the date -d capability is in that code.
Other than that you have to resort to some language and write your own "date -d".
This is the way it is in UNIX. There are lots of ways to get what you want, but just because it involves doing something you don't like does not mean it is necessarily bad.
this is a simple C utility that does exactly what you specified:
You now have a one-line command, just be sure date_d is in the PATH.
Hi guys.
I am trying to subtract 10 minutes from the current Unix system date and time. I have the datecalc provided here but it is mainly the date and not the time. Please check on how can i subtract 10 minutes from the current time using datecalc or any other shell scripting that will... (2 Replies)
I have a doubt in date conversion. Can anyone explain the logic behind the date2jd and jd2date in datecalc function specified in this forum. I could not understand what the number are actually representing. Please explain...bcoz i am doing a program with this one..
Note: No need to... (1 Reply)
Hello:
I need to generate two datetimestamps in one hour apart.
the start date is 05262008000000
then generate the following dates
05262008010000
05262008020000
05262008030000
... ... ...
... ... ...
05262008230000
05272008000000
05272008010000
05272008020000
05272008030000
...... (5 Replies)
I have a script that works perfectly on a linux box, but I am going to have to move it over to solaris which I have never really worked with. I was a bit miffed that date -d was not available on solaris so I started looking for alternative soltuoins and found this forum and datecalc.
But I... (4 Replies)
i have a script in bourne called cdrsnokia.sh and inside of it calls a script called resta_dias where it calls the datecalc script (perderabos date calculator).
The purpose is to rest (-) one day arithmetical operation the content of each line and the result is passed to another file lista2;after... (1 Reply)