Hi
Can any buddy give mi a simple program or logic or command which will get
difference between two dates
ex:diff between 20051008 2005908 is 24hours 12 min 2 sec
regards (1 Reply)
if there are two date one is entered by user
and another is system date than how can we finds day difference
between these two date
try to make it within 4 lines (2 Replies)
hi,
i have 2 dates in the form: '20080315120030' and '20080310140030'. i.e. YYYYMMDDHHMMSS.
i need a way of getting the difference between them using shell script.
any thoughts? (14 Replies)
Hi All!
I would like to know the time difference between two dates which are in same format...
$ date -r abc
Thu Oct 29 09:40:37 EDT 2009
$ date
Fri Oct 30 02:07:03 EDT 2009
i would like to find the diff between these two dates in hours..please help..:)
Regards,
Kiran (3 Replies)
Dear all,
I fancy that I'm pretty competent in ksh, but I have someone on HP-UX wanting me to script up a simple interface to handle user alterations rather than giving them high privileges to run up SAM. This is all fairly straightforward, but I'm stuck on an epoch date issue.
When we have... (6 Replies)
1. The problem statement, all variables and given/known data:
The problem i have is that i probably make a few mistake here in the code but don't know what it is and i try to get the date difference but don't know where to add the days_in_month function
2. Relevant commands, code,... (1 Reply)
I tried the below code to find difference between two dates. It works fine if the day of the month is 2-digit number. But it fails when we have a single-digit day of month(ex:1-9). my code is as below. please help me soon.
#!/usr/bin/perl -w
use strict;
use Time::Local;
... (2 Replies)
Hi Everyone,
We are having an issue with date and date -u in our AIX Systems.
We have checked environment variable TZ and /etc/environment and however, we could not rectify the difference.
>date
Thu Mar 19 22:31:40 IST 2015
>date -u
Thu Mar 19 17:01:44 GMT 2015
Any clue... (5 Replies)
Hi,
I created a script for finding the duration of a job using the start and end time of the job. But the command doesnt calculate correct value if the duration is more than 24 hours. Any help would be really good
.
cat test1 --- start time
03/27/15 17:41:00
03/24/15 11:58:04
03/23/15... (3 Replies)
Discussion started by: rogerben
3 Replies
LEARN ABOUT CENTOS
idiff
IDIFF(1) General Commands Manual IDIFF(1)NAME
idiff - compare two images
SYNOPSIS
idiff [options] image1 image2
DESCRIPTION
The idiff utility is invoked as follows:
idiff [options] image1 image2
Where input1 and input2 are the names of two image files that should be compared. They may be of any format recognized by OpenImageIO
(i.e., for which image-reading plugins are available).
If the two input images are not the same resolutions, or do not have the same number of channels, the comparison will return FAILURE imme-
diately and will not attempt to compare the pixels of the two images. If they are the same dimensions, the pixels of the two images will be
compared, and a report will be printed including the mean and maximum error, how many pixels were above the warning and failure thresholds,
and whether the result is PASS, WARNING, or FAILURE. For example:
$ idiff a.jpg b.jpg
Comparing "a.jpg" and "b.jpg"
Mean error = 0.00450079
RMS error = 0.00764215
Peak SNR = 42.3357
Max error = 0.254902 @ (700, 222, B)
574062 pixels (82.1%) over 1e-06
574062 pixels (82.1%) over 1e-06
FAILURE
The "mean error" is the average difference (per channel, per pixel). The "max error" is the largest difference in any pixel channel, and
will point out on which pixel and channel it was found. It will also give a count of how many pixels were above the warning and failure
thresholds.
The metadata of the two images (e.g., the comments) are not currently compared; only differences in pixel values are taken into considera-
tion.
For a complete description, see /usr/share/doc/libopenimageio-dev/openimageio.pdf.gz.
OPTIONS --help Print help message
-v Verbose status messages
-a Compare all subimages/miplevels
Thresholding and comparison options
-fail %g
Failure threshold difference (0.000001)
-failpercent %g
Allow this percentage of failures (0)
-hardfail %g
Fail if any one pixel exceeds this error (infinity)
-warn %g
Warning threshold difference (0.00001)
-warnpercent %g
Allow this percentage of warnings (0)
-hardwarn %g
Warn if any one pixel exceeds this error (infinity)
-p Perform perceptual (rather than numeric) comparison
Difference image options
-o %s Output difference image
-od Output image only if nonzero difference
-abs Output image of absolute value, not signed difference
-scale %g
Scale the output image by this factor
SEE ALSO iconvert(1), igrep(1), iinfo(1), iprocess(1), iv(1), maketx(1), oiiotool(1).
AUTHOR
OpenImageIO was written by Larry Gritz and the other authors and contributors.
This manual page was written by IRIE Shinsuke <irieshinsuke@yahoo.co.jp>, for the Debian project (and may be used by others).
May 19, 2012 IDIFF(1)