Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Subtract date & time in diferent rows Post 77516 by Perderabo on Sunday 10th of July 2005 08:07:38 AM
Old 07-10-2005
We have some rules here. One of the them is:

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

Don't break it again. Another issue is that you keep posting in the forum "Post Here to Contact Site Administrators and Moderators". That forum is not for technical questions, it's for issues with the site itself. Post your questions in an appropriate forum.

And by the way, putting conditions in like "Please Dont refer me to Datecalc as I want specific script to do so." is a good way to limit responses. When you're that selective you really need to hire an expert who will meet all of your demands.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Time & Date Command

Hey all, When you run the 'ls -la' command it'll show you the time and dates of all files/directories. Now what I am trying to do is create a script that will tell me what files haven't been used in over the past 1 month and what the time and date is that the files that haven't been accessed in... (2 Replies)
Discussion started by: merlin
2 Replies

2. Shell Programming and Scripting

Convert Epoch Time to Standard Date and Time & Vice Versa

Hi guys, I know that this topic has been discuss numerous times, and I have search the net and this forum for it. However, non able to address the problem I faced so far. I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies

3. Shell Programming and Scripting

About date & time difference

Hello All, I was having a look on threads on the Forum about time calculation but didn't find exactly this issue. For instance, if we have these 2 dates, begin & end : 20100430235830 20100501000200 Is there anyway, awk, ksh, perl to calculate the difference in sec and get for... (6 Replies)
Discussion started by: rany1
6 Replies

4. Programming

DATE & TIme

Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ? please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies

5. Shell Programming and Scripting

Script to subtract rows HELP

Dear All, Please help with a script which can accomplish the following: Input table: $1 $2 $3 Student1 1 50 Student2 56 75 Student3 77 100 Desired Output: $1 $2 $3 $4 Student1 1 50 Student2 56 75 6 Student3 77 ... (4 Replies)
Discussion started by: saint2006
4 Replies

6. UNIX for Dummies Questions & Answers

Removing duplicate rows & selecting only latest date

Gurus, From a file I need to remove duplicate rows based on the first column data but also we need to consider a date column where we need to keep the latest date (13th column). Ex: Input File: Output File: I know how to take out the duplicates but I couldn't figure out... (5 Replies)
Discussion started by: shash
5 Replies

7. Shell Programming and Scripting

multiple and diferent printf(s) for diferent fields in awk

Hi, I'm trying to print and outrput of a timestamp from a script i did that calcs de time diference betwen 2 timestamps in the format HH:MM:SS and i properly formated it with printf inside awk, but i can't do it with separate statements. This works fine, but can you explaim-me how to do it... (2 Replies)
Discussion started by: grafman
2 Replies

8. Shell Programming and Scripting

Subtract two rows (in Time format)

Hello all, I have written sth like this: #!/bin/bash grep -e XXX -e YYYY myfile.log | grep -v ZZZ | awk '{print $1 " " $2 ";" $3 ";" $9 ";" $11}' > myfile.csv sed -i '1iDate;Time;From;To' myfile.csv => it is clear that it converts log to csv and add a header. Now I want to subtract row... (4 Replies)
Discussion started by: frhling
4 Replies

9. Shell Programming and Scripting

Date command - subtract from given time

the given time is: 12:13:00 how do i subtract a 10 minutes from any given time? date '12:13:00' '-10 min' also tried this: date +12:13:00 '-10 min' (2 Replies)
Discussion started by: SkySmart
2 Replies

10. UNIX for Dummies Questions & Answers

How to chnage format and subtract time and date and get average.?

Hello All , Please support for below request how to change format and subtract time and date and get average. xxx 13-OCT-15 11.32.18.241000 AM 13-OCT-15 11.35.49.089080 AM xxx 13-OCT-15 11.32.24.000000 AM 13-OCT-15 11.45.17.810904 AM xxx 13-OCT-15 11.32.25.232000 AM ... (1 Reply)
Discussion started by: mirwasim
1 Replies
std::fpos< _StateT >(3) 				     Library Functions Manual					   std::fpos< _StateT >(3)

NAME
std::fpos< _StateT > - SYNOPSIS
Public Member Functions fpos (streamoff __off) operator streamoff () const fpos operator+ (streamoff __off) const fpos & operator+= (streamoff __off) fpos operator- (streamoff __off) const streamoff operator- (const fpos &__other) const fpos & operator-= (streamoff __off) void state (_StateT __st) _StateT state () const Detailed Description template<typename _StateT>class std::fpos< _StateT > Class representing stream positions. The standard places no requirements upon the template parameter StateT. In this implementation StateT must be DefaultConstructible, CopyConstructible and Assignable. The standard only requires that fpos should contain a member of type StateT. In this implementation it also contains an offset stored as a signed integer. Parameters: StateT Type passed to and returned from state(). Definition at line 112 of file postypes.h. Constructor &; Destructor Documentation template<typename _StateT> std::fpos< _StateT >::fpos (streamoff__off) [inline] Construct position from offset. Definition at line 133 of file postypes.h. Member Function Documentation template<typename _StateT> std::fpos< _StateT >::operator streamoff () const [inline] Convert to streamoff. Definition at line 137 of file postypes.h. template<typename _StateT> fpos std::fpos< _StateT >::operator+ (streamoff__off) const [inline] Add position and offset. Definition at line 178 of file postypes.h. template<typename _StateT> fpos& std::fpos< _StateT >::operator+= (streamoff__off) [inline] Add offset to this position. Definition at line 154 of file postypes.h. template<typename _StateT> fpos std::fpos< _StateT >::operator- (streamoff__off) const [inline] Subtract offset from position. Definition at line 192 of file postypes.h. template<typename _StateT> streamoff std::fpos< _StateT >::operator- (const fpos< _StateT > &__other) const [inline] Subtract position to return offset. Definition at line 205 of file postypes.h. template<typename _StateT> fpos& std::fpos< _StateT >::operator-= (streamoff__off) [inline] Subtract offset from this position. Definition at line 165 of file postypes.h. template<typename _StateT> void std::fpos< _StateT >::state (_StateT__st) [inline] Remember the value of st. Definition at line 141 of file postypes.h. template<typename _StateT> _StateT std::fpos< _StateT >::state () const [inline] Return the last set value of st. Definition at line 146 of file postypes.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::fpos< _StateT >(3)
All times are GMT -4. The time now is 01:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy