02-14-2009
Doubt in datecalc.....
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 specifically explain the function in datecalc...in general also...u can explain...i want to know the logic behind it in a logical manner...
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: alexcol
1 Replies
2. Shell Programming and Scripting
Is there no simple way using 'date' command just to get number of days from given date.
ie. if I pass 2007-01-15 as an argument. I want to obtain result as 015
Simarly for 2007-02-10. I want to obtain result as 41.
Can't this be achieved by simple 1 or 2 lines of command (date). As this is... (1 Reply)
Discussion started by: tostay2003
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: trey85stang
4 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: ucbus
5 Replies
5. Shell Programming and Scripting
I jus want to know the meaning of the below command line(exclamation following that re-direction)
sqlplus -s `cat /home/sample.txt` <<!
Thanks!! (1 Reply)
Discussion started by: nohup
1 Replies
6. UNIX for Dummies Questions & Answers
How would i create virtual interface in linux to configure more than one IP address for a physical interface?
any help wll be appreciated. (1 Reply)
Discussion started by: salil2012
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: bantiloe
2 Replies
8. Red Hat
How to create a file with specific size in RHEL6 (1 Reply)
Discussion started by: Sashi Kanth A
1 Replies
9. UNIX for Beginners Questions & Answers
in my shell script requirement is to search and replace the file with variable so i use the following command sed -i "s/abc/$SCHEMA/g" table.sql
later when the script runs sqlplus username/pwd@Table& this & is not letting the variable to replace the value inside the file .please let me know... (1 Reply)
Discussion started by: bhuvan1
1 Replies
LEARN ABOUT DEBIAN
explain_ftime_or_die
explain_ftime_or_die(3) Library Functions Manual explain_ftime_or_die(3)
NAME
explain_ftime_or_die - return date and time and report errors
SYNOPSIS
#include <libexplain/ftime.h>
void explain_ftime_or_die(struct timeb *tp);
int explain_ftime_on_error(struct timeb *tp);
DESCRIPTION
The explain_ftime_or_die function is used to call the ftime(3) system call. On failure an explanation will be printed to stderr, obtained
from the explain_ftime(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_ftime_on_error function is used to call the ftime(3) system call. On failure an explanation will be printed to stderr, obtained
from the explain_ftime(3) function, but still returns to the caller.
tp The tp, exactly as to be passed to the ftime(3) system call.
RETURN VALUE
The explain_ftime_or_die function only returns on success, see ftime(3) for more information. On failure, prints an explanation and exits,
it does not return.
The explain_ftime_on_error function always returns the value return by the wrapped ftime(3) system call.
EXAMPLE
The explain_ftime_or_die function is intended to be used in a fashion similar to the following example:
explain_ftime_or_die(tp);
SEE ALSO
ftime(3)
return date and time
explain_ftime(3)
explain ftime(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_ftime_or_die(3)