09-12-2008
I'm not sure about HPs and older Sun, but I think that your last resort may be to build a perl wrapper around the
stat function.
Hope this works, I haven't tested it myself.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know how to display the time with seconds
of when a file was last modified. I can get hour & minutes but
would also like seconds. --Running AIX (1 Reply)
Discussion started by: edog
1 Replies
2. UNIX for Dummies Questions & Answers
I have a requirement to find the time difference in second between 2 given time stamps. An example scenario is shown below:
30 Oct 11:42:29:992 DEBUG org.apache.commons.digester.Digester - New match='form-validation/global/validator' (IID=, TID=)
30 Oct 11:42:29:993 DEBUG... (0 Replies)
Discussion started by: Alecs
0 Replies
3. Shell Programming and Scripting
Hi All,
I have two files (given below) each exists under different paths. I want to compare the modification time stamp of file1.txt is lessthan the modification time of file2.txt.
month1=`ls -l file1.txt | awk '{ print $6}'`
date1=`ls -file1.txt | awk '{ print $7}'`
time1=`ls... (1 Reply)
Discussion started by: Arunprasad
1 Replies
4. Shell Programming and Scripting
Hi,
I have a directory made up of many symbolic links to folders multiple file systems.
I want to return folders modified within the last 50 days, but find is using the link time rather than the target time.
find . -type d -mtime -50
Is there a way to either:
a) Make a symbolic link... (1 Reply)
Discussion started by: earls
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I need the modification time of a file on a particular day say 3 days before.
I just don't want the last modification time. I need all the modification times on a particualar day.
Is there anyway to do it? Kindly help. Could anyone tell me where the modification time is stored?... (1 Reply)
Discussion started by: vidhyab
1 Replies
6. Shell Programming and Scripting
Hi All,
I need to list the files based modification time of the files from a directory, I cannot use "ls -t" as there are lot of files, which "ls" command cannot handle. New files will land there daily. So iam looking for an alternative through "find"command.
All suggestions are welcomed.
... (6 Replies)
Discussion started by: Kesavan
6 Replies
7. Shell Programming and Scripting
Explain it with proper e.g (4 Replies)
Discussion started by: sidpatil
4 Replies
8. Programming
First, oh great Unix gurus, forgive if this is a stupid question.
Unix/Linux is not my main thing but I have been programming in C/C++ for many years. I will do my best to be specific.
I have a program in C/C++ that needs to modify the time of a given file. Currently I do this using utime()... (5 Replies)
Discussion started by: Pug
5 Replies
9. AIX
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies
10. UNIX and Linux Applications
Hi all,
I would like some help with a sendmail problem:
We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3
All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)
Discussion started by: Mysturji
11 Replies
LEARN ABOUT DEBIAN
audio::mpd::common::time
Audio::MPD::Common::Time(3pm) User Contributed Perl Documentation Audio::MPD::Common::Time(3pm)
NAME
Audio::MPD::Common::Time - class representing time of current song
VERSION
version 1.120881
DESCRIPTION
Audio::MPD::Common::Status returns some time information with the "time()" accessor. This information relates to the elapsed time of the
current song, as well as the remaining and total time. This information is encapsulated in an Audio::MPD::Common::Time object.
An Audio::MPD::Common::Time object does not update itself regularly, and thus should be used immediately.
Note: one should never ever instantiate an Audio::MPD::Common::Time object directly - use the mpd modules instead.
ATTRIBUTES
$time->time;
The time passed to the constructor, used to compute all others values (see methods). It is the time value (on the "time" line) of what the
MPD server returns to the status command. Defaults to "0:0".
METHODS
my $str = $time->sofar;
Return elapsed $time ("minutes:seconds" format).
my $str = $time->left;
Return remaining $time ("minutes:seconds" format).
my $str = $time->left;
Return total $time ("minutes:seconds" format).
my $percent = $time->percent;
Return elapsed $time (percentage, 1 digit).
my $secs = $time->seconds_sofar;
Return elapsed $time in seconds.
my $secs = $time->seconds_left;
Return remaining $time in seconds.
my $secs = $time->seconds_total;
Return total $time in seconds.
my $mins = $time->sofar_mins;
Return minutes part of elapsed $time.
my $secs = $time->sofar_secs;
Return seconds part of elapsed $time.
my $mins = $time->left_mins;
Return minutes part of remaining $time.
my $secs = $time->left_secs;
Return seconds part of remaining $time.
my $mins = $time->total_mins;
Return minutes part of total $time.
my $mins = $time->total_secs;
Return seconds part of total $time.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-04-01 Audio::MPD::Common::Time(3pm)