Hi,
How do I calculate time? I need to create an alert if a process is running more than 30 minutes.
I need to get the first time and then get another, calculate it if more than 30 mins and then alert it to pager.
Can't find it in internet.
Thanks in advance,
itik (2 Replies)
Hi,
Please help me in calculating the time difference between below mentioned timestamps.
a=07/17/2007 02:20:00 AM MST
b=07/17/2007 02:07:46 AM MST
Thanks (2 Replies)
Hello!
I need to find how many days, hours and minutes remain to some specific date and I wonder why the following program shows incorrect values, such as 4 days 23 hours etc to 14:00 this Saturday from 17:33 today...
#include <stdio.h>
#include <time.h>
int main()
{
time_t elaps,... (4 Replies)
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Hi
i have a file which consists of the time records in following format
H:MM:SS.sss
0:00:09.249
0:00:00.102
0:00:00.105
0:00:08.499
0:00:08.499
0:00:06.980
0:00:04.249
0:00:05.749
0:00:00.108
0:00:00.107
0:00:03.014
0:00:00.000
I need to calculate their equivalent milliseconds... (3 Replies)
Hello Guys,
I am trying to calculate total hours and minutes a given user has used the system since the beginning of the current month.
#!/usr/bin/sh
hr=0
min=0
last $1 | grep -w `date "+%b"` | grep -v '\(0:.*\)' | grep -vw sshd | cut -c 66-
| tr -d "\(\)" | cut -f1 -d ":" | grep -v '.*' |... (9 Replies)
Hi All,
I have one file which contains time for request and response.
I want to calculate time difference in milliseconds for each line.
This file can contain 10K lines.
Sample file with 4 lines.
for first line.
Request Time: 15:23:45,255
Response Time: 15:23:45,258
Time diff... (6 Replies)
Discussion started by: Raza Ali
6 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)