08-12-2011
This option i tried but no luck
I am Using AIX 5.3
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Have we just had a rollback of a few hours? (1 Reply)
Discussion started by: porter
1 Replies
2. SCO
HI
We have Compaq ML350 G2 server with UNIX SCO 5.0.5 OS , can anyone help us to get rid about the system restarting problem by itself every after2-24 hours with following error " MEMORY CORE DUMP " .
Waiting for your ASAP help.
Thank You . (4 Replies)
Discussion started by: munirh
4 Replies
3. Shell Programming and Scripting
Hi Frens,
I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but older than 3 hours, of current time
i dont want my list to contain the latest files which are ... (4 Replies)
Discussion started by: Prat007
4 Replies
4. What is on Your Mind?
How many hours you spend on Computer in a day??? (10 Replies)
Discussion started by: malcomex999
10 Replies
5. AIX
stupid question im sure, but its frustrating
My cron jobs are off by 5 hours. My system time is right but all of my cron jobs are running approximately 5 hours late. Any idea why? (4 Replies)
Discussion started by: mshilling
4 Replies
6. Shell Programming and Scripting
I need to grep PIDs older than 24 hours (1 day) or more.
ps -ef |grep ???
Please advise. (10 Replies)
Discussion started by: Daniel Gate
10 Replies
7. Shell Programming and Scripting
Need to run a script for exactly 3 hours.
It will have while loop which is to keep running until its 3 hours since the script's invocation time and then exit the script.
Script could be invoked at any time.
May have to change the number of hours later as per need.
Are there any existing... (5 Replies)
Discussion started by: Prev
5 Replies
8. Shell Programming and Scripting
I have a file that should cover a days worth of stats, at the beginning of each 15 minute report I have a unique header that looks like the below example. The "0000" and "0015" will change in the header line to show which 15 Minute interval the report is covering and of course from day to day the... (7 Replies)
Discussion started by: fsanchez
7 Replies
9. Shell Programming and Scripting
Hi,
i have a date 1- 2013101511
date2 -2013101812
need toget the no of hours between them,can any one tellme the logic. (6 Replies)
Discussion started by: sandeep karna
6 Replies
LEARN ABOUT MOJAVE
time::seconds
Time::Seconds(3pm) Perl Programmers Reference Guide Time::Seconds(3pm)
NAME
Time::Seconds - a simple API to convert seconds to other date values
SYNOPSIS
use Time::Piece;
use Time::Seconds;
my $t = localtime;
$t += ONE_DAY;
my $t2 = localtime;
my $s = $t - $t2;
print "Difference is: ", $s->days, "
";
DESCRIPTION
This module is part of the Time::Piece distribution. It allows the user to find out the number of minutes, hours, days, weeks or years in a
given number of seconds. It is returned by Time::Piece when you delta two Time::Piece objects.
Time::Seconds also exports the following constants:
ONE_DAY
ONE_WEEK
ONE_HOUR
ONE_MINUTE
ONE_MONTH
ONE_YEAR
ONE_FINANCIAL_MONTH
LEAP_YEAR
NON_LEAP_YEAR
Since perl does not (yet?) support constant objects, these constants are in seconds only, so you cannot, for example, do this: "print
ONE_WEEK->minutes;"
METHODS
The following methods are available:
my $val = Time::Seconds->new(SECONDS)
$val->seconds;
$val->minutes;
$val->hours;
$val->days;
$val->weeks;
$val->months;
$val->financial_months; # 30 days
$val->years;
$val->pretty; # gives English representation of the delta
The usual arithmetic (+,-,+=,-=) is also available on the objects.
The methods make the assumption that there are 24 hours in a day, 7 days in a week, 365.24225 days in a year and 12 months in a year.
(from The Calendar FAQ at http://www.tondering.dk/claus/calendar.html)
AUTHOR
Matt Sergeant, matt@sergeant.org
Tobias Brox, tobiasb@tobiasb.funcom.com
BalXzs SzabX (dLux), dlux@kapu.hu
LICENSE
Please see Time::Piece for the license.
Bugs
Currently the methods aren't as efficient as they could be, for reasons of clarity. This is probably a bad idea.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 245:
Non-ASCII character seen before =encoding in 'BalXzs'. Assuming UTF-8
perl v5.18.2 2014-01-06 Time::Seconds(3pm)