05-22-2012
How to check changes made in last few weeks?
Hi,
I want to know what changes were made to my AIX system in last few weeks/months.
Is there any command that I can use for this?
I am facing a problem wherein my program which are built few weeks back runs fine but if I build the same program now, it doesn't run as expected.
Quote:
% uname -a
AIX crmcmaix2 3 5 00CE46A34C00
%
thanks in advance,
Ashish
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
okay, heres the thing
I'm creating a script that I can use to create users. no, this is not a homework assignment or whatever it may seem. i'm just trying to master shell programming.
how can I pass arguments in a file to useradd?????
when i say arguments, I mean, all the arguments and... (1 Reply)
Discussion started by: TRUEST
1 Replies
2. Shell Programming and Scripting
Hi,
I search how i could do to find if a year (for example 2004, 1989, 2058) has 52 or 53 weeks...
Have you a idea for me please??? (1 Reply)
Discussion started by: Castelior
1 Replies
3. Shell Programming and Scripting
HI,
I need to check whether the given file is 5 weeks older than current date ??
Can anyone give me the script for this ?? (1 Reply)
Discussion started by: risshanth
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I use vi editor in Unix.
Is there any way if we can know that what change was made to the file opened in vi before quitting?
As i opened a huge file made some changes yesterday and didnt save it.
Today when i was quitting the vi , i came to know that some changes are made(as i got... (6 Replies)
Discussion started by: kailash19
6 Replies
5. Shell Programming and Scripting
I am unable to get the last week date i tried to use the following commands but i failed
Please help, and am using HP unix
date -d "+1 week"
date --date=yesterday +%y%m%d (5 Replies)
Discussion started by: jhon1257
5 Replies
LEARN ABOUT OSX
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
BalieXXzs SzabieXX (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.
perl v5.16.2 2012-10-11 Time::Seconds(3pm)