Sponsored Content
Top Forums Shell Programming and Scripting Days difference between two dates Post 302174487 by ali560045 on Tuesday 11th of March 2008 08:10:11 AM
Old 03-11-2008
thanks a lot. this is really so helpfull to me...........i will never forget your help in this
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

days elapsed between 2 dates

does anybody know how to find out the number of days elapsed between 2 dates e.g. days elapsed between 020212 and 020110 (YYMMDD format) Thanking you in advance. Ravi. (1 Reply)
Discussion started by: rkkiran
1 Replies

2. Shell Programming and Scripting

Difference between two dates in no of days ???

Hi All How to get the difference between two dates in no of days ??? My date format is like this YYYY/MM/DD. I have to get the no of days between two dates in the given format. I tried to search the forum but nothing came up similar to my requitement. Your help will be appreciated. ... (1 Reply)
Discussion started by: csaha
1 Replies

3. UNIX for Advanced & Expert Users

Number of days between two distinct dates

Hi I'm looking for a .ksh script/function that will calculate ONLY the number of days between two distinct dates. Further convert the number of days to weeks and display. I need this to be part of another larger script that checks the password expiry on several servers and notifies the... (1 Reply)
Discussion started by: radheymohan
1 Replies

4. UNIX for Dummies Questions & Answers

using 'date' to get previous days' dates

I am familiar with using the 'date' command to get the current date but I have a situation where I need to get the previous day's date as well as the date two days prior. Theoretically I could use 'expr' to compute these values but I need it to work in instances where the previous month's dates... (2 Replies)
Discussion started by: slant-40
2 Replies

5. UNIX for Dummies Questions & Answers

display all dates 200 days back

i need help! can someone help me please? i try to calculate date under unix (ksh)...AIX operating system. I have to find the date 200 days from today's date. then the script should loop 200 times and display on command line every day's date until the current date. example: todays date:... (1 Reply)
Discussion started by: pavan_test
1 Replies

6. Shell Programming and Scripting

Get number of days between given dates

Hi I need one single command to get number of days between two given dates.datecalc is not working. ex. fromdate:01.04.2010 todate :24.04.2010 i should get the out put as 23 Thanks in advance (4 Replies)
Discussion started by: suryanarayana
4 Replies

7. Shell Programming and Scripting

days are between the two dates?

I have two times in the format of YYMMDD. Does anyone know an easy way in ksh for me to display how many days are between the two dates? Example1: X=101202 Y=101205 There are 3 days between X & Y Example2: X=101202 Y=111202 There are 365 days between X & Y Example3: X=101205... (3 Replies)
Discussion started by: oldman2
3 Replies

8. UNIX for Advanced & Expert Users

How to get the sunday days between two dates?

Hi Am using Unix Ksh I have a two date input as DATE1=02/12/2012 DATE2=30/12/2012 I Need the output as only sunday date 02/12/2012 09/12/2012 16/12/2012 23/12/2012 30/12/2012 can anyone pls help me.. thanks in advance... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

9. Shell Programming and Scripting

Difference in dates in days (ksh shell)

Hi Guys, Need a small help, how do i get the difference between two dates (in days) in KSH shell My date is in mm/dd/YYYY format, Is there a function to get time stamp from the respective date and time ( mm/dd/yyyy HH:MM:SS) (1 Reply)
Discussion started by: selvankj
1 Replies

10. Shell Programming and Scripting

Get number of days between 2 dates

Gents. Please can u help. I would like to calculate the days between two dates. Example file1 ( previous date) file1 - Input file 9/29/2010 10195 9/29/2010 1057 2/2/2016 10 2/2/2016 10169 2/2/2016 1057 2/3/2016 10005 2/3/2016 10014 In file2 I add the actual date using this code.... (9 Replies)
Discussion started by: jiam912
9 Replies
CosTransactions_Resource(3erl)				     Erlang Module Definition				    CosTransactions_Resource(3erl)

NAME
CosTransactions_Resource - This module implements the OMG CosTransactions::Resource interface. DESCRIPTION
To get access to the record definitions for the structures use: -include_lib("cosTransactions/include/CosTransactions.hrl"). EXPORTS
commit(Resource) -> Return Types Resource = #objref Return = ok | {'EXCEPTION', E} E = #'CosTransactions_NotPrepared'{} | #'CosTransactions_HeuristicRollback'{} | #'CosTransactions_HeuristicMixed'{} | #'Cos- Transactions_HeuristicHazard'{} This operation instructs the Resource to commit all changes made as a part of the transaction. The Resource can raise: * Heuristic Exception - if a Heuristic decision is made which differ from the true outcome of the transaction. The Resource must remember the Heuristic outcome until the forget operation is performed. commit_one_phase(Resource) -> Return Types Resource = #objref Return = ok | {'EXCEPTION', E} E = #'CosTransactions_HeuristicHazard'{} | #'CosTransactions_TransactionRolledBack'{} If possible, the Resource should commit all changes made as part of the transaction, else it should raise the TRANSACTION_ROLLEDBACK exception. This operation can only be used if the Resource is the only child of its parent. forget(Resource) -> Return Types Resource = #objref Return = ok This operation informs the Resource that it is safe to forget any Heuristic decisions and the knowledge of the transaction. prepare(Resource) -> Return Types Resource = #objref Return = Vote | {'EXCEPTION', E} Vote = 'VoteReadOnly' | 'VoteCommit' | 'VoteRollback' E = #'CosTransactions_HeuristicMixed'{} | #'CosTransactions_HeuristicHazard'{} This operation is invoked on the Resource to begin the two-phase commit protocol. The Resource can reply: * 'VoteReadOnly' - if no persistent data has been modified by the transaction. The Resource can forget all knowledge of the trans- action. * 'VoteCommit' - if the Resource has been prepared and is able to write all the data needed to commit the transaction to stable storage. * 'VoteRollback' - under any circumstances but must do so if none of the alternatives above are applicable. * Heuristic Exception - if a Heuristic decision is made which differ from the true outcome of the transaction. The Resource must remember the Heuristic outcome until the forget operation is performed. rollback(Resource) -> Return Types Resource = #objref Return = ok | {'EXCEPTION', E} E = #'CosTransactions_HeuristicCommit'{} | #'CosTransactions_HeuristicMixed'{} | #'CosTransactions_HeuristicHazard'{} This operation instructs the Resource to rollback all changes made as a part of the transaction. The Resource can raise: * Heuristic Exception - if a Heuristic decision is made which differ from the true outcome of the transaction. The Resource must remember the Heuristic outcome until the forget operation is performed. Ericsson AB cosTransactions 1.2.10 CosTransactions_Resource(3erl)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy