03-09-2014
Im not sure I understand your problem. Daylight saving time should be one hour ahead, so your results should be correct, no?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would you convert lets say a 1000 minutes to hours, minutes, seconds (1 Reply)
Discussion started by: Vozx
1 Replies
2. Shell Programming and Scripting
i find a script to calculate hours of job i(nclude extraordinary)
i make a script to calculate add and subtract two hours (format hh:mm:ss) (7 Replies)
Discussion started by: ZINGARO
7 Replies
3. Shell Programming and Scripting
Hi all,
may i know how to display time in minutes and seconds(may be milliseconds and even smaller that ) in shell scripts.... (1 Reply)
Discussion started by: santy
1 Replies
4. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies
5. Shell Programming and Scripting
Hi
i want to print the time of a process in hours only..(or) in minutes only.Is there anyway to print the process such like that
when i give the commnand like following
#ps -eo pid,time
PID TIME
412 01:49:32
481 00:03
it shows in HH:MM:SS format:
Could anyone... (1 Reply)
Discussion started by: srikanthg
1 Replies
6. Shell Programming and Scripting
i have the time 20100421043335 in format (date +%Y%m%d%H%M%S),and i want to be able to get the previous time 2 minutes ago,which is
20100421043135 (9 Replies)
Discussion started by: tomjones
9 Replies
7. Shell Programming and Scripting
OK, I am by no means a programmer...
I have been given the task to do some automation scripts. I have got most of it working from snippets I have found on the Web.
One requirement has me stumped.
The initial timing file created by the user is a comma delimited in the following format.... (4 Replies)
Discussion started by: autotuner
4 Replies
8. Shell Programming and Scripting
Hi guys.
I am trying to subtract 10 minutes from the current Unix system date and time. I have the datecalc provided here but it is mainly the date and not the time. Please check on how can i subtract 10 minutes from the current time using datecalc or any other shell scripting that will... (2 Replies)
Discussion started by: bantiloe
2 Replies
9. Shell Programming and Scripting
I have a problem. I am working on a Call Detail Report system. Come to find out the phone switch does not report in seconds. It is a 5 digit field that reports h:mm:ss
The problem is I have 1-5 digit numbers
Ie 1 = 1 second and should be reported as 0:00:01
22 should be 0:00:22
321 should be... (5 Replies)
Discussion started by: truecall
5 Replies
10. UNIX for Beginners Questions & Answers
Hi, please help with below time conversion to minutes.
one column values:
2 minutes 16 seconds 420 msec
43 seconds 750 msec
0 days 3 hours 29 minutes 58 seconds 480 msec
11 seconds 150 msec
I need output in minutes(total elapsed time in minutes) (2 Replies)
Discussion started by: ramu.badugula
2 Replies
LEARN ABOUT DEBIAN
shevek_relative_time
shevek::relative_time(3) Library Functions Manual shevek::relative_time(3)
NAME
shevek::relative_time -
Time interval.
SYNOPSIS
#include <time.hh>
Public Member Functions
relative_time ()
The default constructor creates an interval of 0.
relative_time (timetype days, int hours, int minutes, int seconds, int nanoseconds=0)
Construct an interval of a given size.
relative_time (timetype seconds, unsigned nanoseconds)
Fast constructor.
relative_time operator+ (relative_time that) const
Add two intervals.
absolute_time operator+ (absolute_time that) const
Add an interval to a moment.
relative_time operator- (relative_time that) const
Subtract two intervals.
relative_time operator- () const
Negate an interval.
relative_time operator* (float c) const
Scale an interval.
relative_time operator/ (float c) const
Scale an interval.
relative_time operator% (relative_time that) const
Modulo operator for two intervals.
double operator/ (relative_time that) const
Division of two intervals.
relative_time & operator+= (relative_time that)
Add an interval.
relative_time & operator-= (relative_time that)
Subtract an interval.
relative_time & operator*= (float c)
Scale the interval.
relative_time & operator/= (float c)
Scale the interval.
relative_time & operator%= (relative_time that)
Modulo.
bool operator< (relative_time that) const
Compare with another interval.
bool operator> (relative_time that) const
Compare with another interval.
bool operator<= (relative_time that) const
Compare with another interval.
bool operator>= (relative_time that) const
Compare with another interval.
bool operator== (relative_time that) const
bool operator!= (relative_time that) const
unsigned nanoseconds () const
Number of nanoseconds.
unsigned seconds () const
Number of seconds.
unsigned minutes () const
Number of minutes.
unsigned hours () const
Number of hours.
unsigned days () const
Number of days.
bool isnegative () const
Is this a negative interval?
timetype total () const
Total number of seconds, as encoded.
Static Public Member Functions
static void set_digits (unsigned num)
Set number of digits to use when printing (for fractions of seconds).
static unsigned get_digits ()
Get the number of digits that is used when printing.
Friends
std::ostream & operator<< (std::ostream &s, relative_time t)
Write the interval to a std::ostream.
Detailed Description
Time interval.
Constructor & Destructor Documentation
shevek::relative_time::relative_time (timetypeseconds, unsignednanoseconds)
Fast constructor. This directly fills the members and is therefore slightly faster than the other constructors. However, the others aren't
really slow either.
Member Function Documentation
bool shevek::relative_time::operator!= (relative_timethat) const Compare two intervals. Note that this is rarely a useful operation, because
minor errors may be introduced by computations.
bool shevek::relative_time::operator== (relative_timethat) const Compare two intervals. Note that this is rarely a useful operation, because
minor errors may be introduced by computations.
Author
Generated automatically by Doxygen for libshevek from the source code.
libshevek Fri May 11 2012 shevek::relative_time(3)