RE: [U2] Time conversion code
The change in functionality was documented at 10.0 as a GTAR fix. As there are only 24 hours in a day, the logic was that MT shouldn't go above 24 hours. I recall there was discussion on the list about this at the time. David Norman Senior Software Engineer SA Ambulance Service Box 3, GPO Adelaide, South Australia 5001 *+61 8 8274 0384 * fax +61 8 8271 4844 * [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code [not-secure]
My apologies for the security intercept. Our rules seem to trigger on some of the most innocuous message imaginable. Yet I could send a message "The root password to the UNIX server is carrot" without a problem. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hennessey, Mark F. Sent: Friday, June 08, 2007 10:17 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code You have received an important delivery from mark.hennessey Please pick up the package at the following Web address: https://smail.ct.gov/ime?x=4-247937-163256-3PVDGN0E --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
You have received an important delivery from mark.hennessey Please pick up the package at the following Web address: https://smail.ct.gov/ime?x=4-247937-163256-3PVDGN0E The package will expire on Sunday July 08, 2007 at 10:18:45 EDT4 .. Need help picking up your package? * If the Web address above is highlighted, click on it to open a browser window. You will automatically be taken to the package. * If the Web address above is not highlighted, follow these steps: - Open a Web browser window. - Copy and paste the entire Web address into the "location" or "address" bar of the browser. - Press enter. ___ Delivered with IME(TM) http://www.tumbleweed.com IME is a trademark of Tumbleweed Communications Corp. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
9.6.1.3 IDEAL: 01:00:00 PICK : 25:00:00 -- MW --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
I've always done something in this vein... DAYS = INT(DURATION/86400) TEMP = DAYS * 86400 HOURS.SECONDS = OCONV((DURATION - TEMP),'MTHS' TOTAL.TIME = DAYS:"DAYS ":HOURS.SECONDS oops, but you want hours, so: HOURS = INT(DURATION/3600) TEMP = HOURS * 3600 MINUTES = INT((DURATION - TEMP)/60) TOTAL.TIME = HOURS:':':MINUTES Should work... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tim Franklin Sent: Wednesday, June 06, 2007 01:09 To: u2-users@listserver.u2ug.org Subject: [U2] Time conversion code I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code {Unclassified}
Here's what UniData gives (just in case you're interested): 5 Demo (0)-> list VOC 'version' EVAL "@RECORD" EVAL "OCONV('9', 'MTS')" COL.HDG "TIME" list VOC 'version' EVAL "@RECORD" EVAL "OCONV('9', 'MTS')" COL.HDG "TIME" 14:31:45 Jun 07 2007 1 VOC... @RECORDTIME.. version7.125:00:00 1 record listed Bill >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of >HENDERSON MIKE, MR >Sent: Thursday, June 07, 2007 2:14 PM >To: u2-users@listserver.u2ug.org >Subject: RE: [U2] Time conversion code {Unclassified} > >UV 10.1.18 on Win2K3 > >"User" Accounts > LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" >VOC.@RECORD...9. > >RELLEVELX 01:00:00 >10.1.18 >INFORMATIO >N >INFORMATIO >N.FORMAT >10.1.18 > > >"uv" Account >LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" >VOC.@RECORD...9. > >RELLEVELX-type - T01:00:00 >he RELEASE > LEVEL of > this accou >nt >10.1.18 >ADMIN >10.1.18 > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, >Charles >Sent: Friday, 8 June 2007 4:26 a.m. >To: u2-users@listserver.u2ug.org >Subject: RE: [U2] Time conversion code > >> From: Anthony Youngman >> If it has been changed, it should be logged as a bug! >> > From: Norman, David >> >This (IMO unwanted) change in functionality occurred at 10.0. > >UV users any & all, >Please post results to this simple test: > > LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" > >[snip] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code {Unclassified}
UV 10.1.18 on Win2K3 "User" Accounts LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" VOC.@RECORD...9. RELLEVELX 01:00:00 10.1.18 INFORMATIO N INFORMATIO N.FORMAT 10.1.18 "uv" Account LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" VOC.@RECORD...9. RELLEVELX-type - T01:00:00 he RELEASE LEVEL of this accou nt 10.1.18 ADMIN 10.1.18 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, Charles Sent: Friday, 8 June 2007 4:26 a.m. To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code > From: Anthony Youngman > If it has been changed, it should be logged as a bug! > > From: Norman, David > >This (IMO unwanted) change in functionality occurred at 10.0. UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" [snip] The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.1.18 PICK PICK.FORMA T 10.1.18 -Original Message- From: Stevenson, Charles [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 9:26 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code > From: Anthony Youngman > If it has been changed, it should be logged as a bug! > > From: Norman, David > >This (IMO unwanted) change in functionality occurred at 10.0. UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" At 10.0.16 I get inconsistent results in Pick, Ideal, & the UV admin acct all on the same system. Has this been a flavour difference forever, or a recent *cough* feature *cough* *cough*? --- Pick --- VOC. @RECORD 9. RELLEVEL X 25:00:00 10.0.16 PICK PICK.FORMAT 10.0.16 --- Ideal --- (same system) VOC. @RECORD 9. RELLEVEL X 01:00:00 10.0.16 NEWACC 10.0.16 --- UV acct --- (same system) VOC. @RECORD 9. RELLEVEL X-type - Th 01:00:00 e RELEASE L EVEL of thi s account 10.0.16 ADMIN 10.0.16 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
When Brian responded to my original posting he mentioned flavour but did not indicate his, but is ours as requested by a brilliant idea. VOC.@RECORD...9. RELLEVELX 01:00:00 10.1.7 PIOPEN PIOPEN.FOR MAT 10.1.7 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 June 2007 12:32 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code Tim Sorry - 'tis flavor dependent :( Not sure how to get round that except by some scraggy coding: Crt Int(YourTime/3600):":":Mod(YourTime,3600) Regards Brian Thanks Brian, I have tried that: PRINT OCONV(9,'MT') and get 01:00 The flavor we use is PIOPEN.FORMAT should we use any options? Regards, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 June 2007 10:54 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code Tim A regular MT conversion should do that: OCONV(9,"MT") -> 25:00 Just don't use the H option (MTH or MTHS). Regards Brian I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Time conversion code
In our user's accounts. LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" 01:55:17pm 07 Jun 2007 PAGE1 VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.1.12 REALITY REALITY.FO RMAT 10.1.12 In the administrators account. LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" 01:54:08pm 07 Jun 2007 PAGE1 VOC.@RECORD...9. RELLEVELX-type - T01:00:00 he RELEASE LEVEL of this accou nt 10.1.12 ADMIN 10.1.12 UV on Red Hat - Original Message - From: "Stevenson, Charles" <[EMAIL PROTECTED]> To: Sent: Thursday, June 07, 2007 11:26 AM Subject: RE: [U2] Time conversion code From: Anthony Youngman If it has been changed, it should be logged as a bug! > From: Norman, David >This (IMO unwanted) change in functionality occurred at 10.0. UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" At 10.0.16 I get inconsistent results in Pick, Ideal, & the UV admin acct all on the same system. Has this been a flavour difference forever, or a recent *cough* feature *cough* *cough*? --- Pick --- VOC. @RECORD 9. RELLEVEL X 25:00:00 10.0.16 PICK PICK.FORMAT 10.0.16 --- Ideal --- (same system) VOC. @RECORD 9. RELLEVEL X 01:00:00 10.0.16 NEWACC 10.0.16 --- UV acct --- (same system) VOC. @RECORD 9. RELLEVEL X-type - Th 01:00:00 e RELEASE L EVEL of thi s account 10.0.16 ADMIN 10.0.16 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Time conversion code
LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" 01:31:41pm 07 Jun 2007 PAGE1 VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.0.0 PICK PICK.FORMA T 10.0.0 LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" 13:32:46 06-07-07 PAGE 1 VOC.@RECORD...9. RELLEVELX 01:00:00 10.0.0 INFORMATIO N INFORMATIO N.FORMAT 10.0.0 LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" 01:33:22pm 07 Jun 2007 PAGE1 VOC.@RECORD...9. RELLEVELX-type - T01:00:00 he RELEASE LEVEL of this accou nt 10.0.0 ADMIN 10.0.0 Stevenson, Charles wrote: From: Anthony Youngman If it has been changed, it should be logged as a bug! From: Norman, David This (IMO unwanted) change in functionality occurred at 10.0. UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" At 10.0.16 I get inconsistent results in Pick, Ideal, & the UV admin acct all on the same system. Has this been a flavour difference forever, or a recent *cough* feature *cough* *cough*? --- Pick --- VOC. @RECORD 9. RELLEVEL X 25:00:00 10.0.16 PICK PICK.FORMAT 10.0.16 --- Ideal --- (same system) VOC. @RECORD 9. RELLEVEL X 01:00:00 10.0.16 NEWACC 10.0.16 --- UV acct --- (same system) VOC. @RECORD 9. RELLEVEL X-type - Th 01:00:00 e RELEASE L EVEL of thi s account 10.0.16 ADMIN 10.0.16 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- Richard A. Wilson Lakeside Systems Smithfield, RI, USA Voice 401-231-3959 Fax 206-202-2064 [EMAIL PROTECTED] www.lakeside-systems.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.2.3 PICK PICK.FORMA T 10.2.3 Mike Dallaire Mortgage Builder Software Inc. (248) 304-0600 ext. 103 [EMAIL PROTECTED] www.mortgagebuilder.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Eastwood Sent: Thursday, June 07, 2007 12:47 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.2.4 PICK PICK.FORMAT 10.2.4 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, Charles Sent: Thursday, June 07, 2007 9:26 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Time conversion code
Charles, UV Account VOC.@RECORD...9. RELLEVELX-type - T01:00:00 he RELEASE LEVEL of this accou nt 10.2.0 ADMIN 10.2.0 Pick flavored account: VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.1.11 PICK PICK.FORMA T 10.1.11 Stevenson, Charles wrote: >> From: Anthony Youngman >> If it has been changed, it should be logged as a bug! >> >>> From: Norman, David >>> This (IMO unwanted) change in functionality occurred at 10.0. >>> > > UV users any & all, > Please post results to this simple test: > >LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" > > At 10.0.16 I get inconsistent results in Pick, Ideal, & the UV admin > acct all on the same system. > Has this been a flavour difference forever, or a recent *cough* feature > *cough* *cough*? > > --- Pick --- > VOC. @RECORD 9. > RELLEVEL X 25:00:00 > 10.0.16 > PICK > PICK.FORMAT > 10.0.16 > >--- Ideal --- (same system) > VOC. @RECORD 9. > RELLEVEL X 01:00:00 > 10.0.16 > NEWACC > > 10.0.16 > >--- UV acct --- (same system) > VOC. @RECORD 9. > > RELLEVEL X-type - Th 01:00:00 > e RELEASE L > EVEL of thi > s account > 10.0.16 > ADMIN > > 10.0.16 > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ > > -- Charles Barouch ([EMAIL PROTECTED]) www.KeyAlly.com (718) 762-3884 x 1 P. O. Box 540957, Queens, NY 11354 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
VOC. @RECORD... 9. RELLEVEL X 25:00:00 10.2.4 PICK PICK.FORMAT 10.2.4 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stevenson, Charles Sent: Thursday, June 07, 2007 9:26 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
> From: Anthony Youngman > If it has been changed, it should be logged as a bug! > > From: Norman, David > >This (IMO unwanted) change in functionality occurred at 10.0. UV users any & all, Please post results to this simple test: LIST VOC "RELLEVEL" EVAL "@RECORD" EVAL "9" CONV "MTS" At 10.0.16 I get inconsistent results in Pick, Ideal, & the UV admin acct all on the same system. Has this been a flavour difference forever, or a recent *cough* feature *cough* *cough*? --- Pick --- VOC. @RECORD 9. RELLEVEL X 25:00:00 10.0.16 PICK PICK.FORMAT 10.0.16 --- Ideal --- (same system) VOC. @RECORD 9. RELLEVEL X 01:00:00 10.0.16 NEWACC 10.0.16 --- UV acct --- (same system) VOC. @RECORD 9. RELLEVEL X-type - Th 01:00:00 e RELEASE L EVEL of thi s account 10.0.16 ADMIN 10.0.16 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
If it has been changed, it should be logged as a bug! It's QUITE NORMAL for the 24hr clock to go over 24 hours - many places work on the basis that you always start and end a shift on the same day - I believe London Underground are one. As such, a shift ending at 28.30 is normal practice ... Cheers, Wol -Original Message- From: Norman, David (SAAS) [mailto:[EMAIL PROTECTED] Sent: 07 June 2007 01:18 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code This (IMO unwanted) change in functionality occurred at 10.0. I have written a user conversion to return the time greater than 24 hours: 01: SUBROUTINE U2134(ANSWER,STATUS,DATA,CONVTYPE) 0002: * OCONV to show hours > 24 after UV10 changes hh:mm 0003: * 0004: * CATALOG AS $2134 e.g. CATALOG BP $2134 U2134 0005: * 0006: * DAN 7.5.04 0007: SECONDS = ABS(DATA) 0008: MINUTES = SECONDS / 60 0009: MINUTES += 0.5 0010: MINUTES = INT(MINUTES) 0011: HOURS = MINUTES / 60 0012: HOURS = INT(HOURS) 0013: MINUTES = MINUTES - (HOURS * 60) 0014: IF HOURS < 10 THEN HOURS = '0':HOURS 0015: ANSWER = HOURS:':':('00':MINUTES)[2] 0016: IF DATA < 0 THEN ANSWER = '-':ANSWER 0017:END HTH David Norman Senior Software Engineer SA Ambulance Service Box 3, GPO Adelaide, South Australia 5001 *+61 8 8274 0384 * fax +61 8 8271 4844 * [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
This (IMO unwanted) change in functionality occurred at 10.0. I have written a user conversion to return the time greater than 24 hours: 01: SUBROUTINE U2134(ANSWER,STATUS,DATA,CONVTYPE) 0002: * OCONV to show hours > 24 after UV10 changes hh:mm 0003: * 0004: * CATALOG AS $2134 e.g. CATALOG BP $2134 U2134 0005: * 0006: * DAN 7.5.04 0007: SECONDS = ABS(DATA) 0008: MINUTES = SECONDS / 60 0009: MINUTES += 0.5 0010: MINUTES = INT(MINUTES) 0011: HOURS = MINUTES / 60 0012: HOURS = INT(HOURS) 0013: MINUTES = MINUTES - (HOURS * 60) 0014: IF HOURS < 10 THEN HOURS = '0':HOURS 0015: ANSWER = HOURS:':':('00':MINUTES)[2] 0016: IF DATA < 0 THEN ANSWER = '-':ANSWER 0017:END HTH David Norman Senior Software Engineer SA Ambulance Service Box 3, GPO Adelaide, South Australia 5001 *+61 8 8274 0384 * fax +61 8 8271 4844 * [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Time conversion code
Tim, You could just roll your own: CALL ELAPSED(9,TIMEOUT) CRT TIMEOUT SUBROUTINE ELAPSED(SECONDS,TIMEOUT) * by Charles Barouch ([EMAIL PROTECTED]) * on 6/6/2007 * *** HOURS = INT(SECONDS/3600) SECONDS = SECONDS - (HOURS * 3600) MINUTES = INT(SECONDS/60) SECONDS = SECONDS - (MINUTES * 60) TIMEOUT = HOURS : ':' : MINUTES 'R%2' : ':' SECONDS 'R%2' RETURN; * Logical End of Program - Chuck --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
Tim Sorry - 'tis flavor dependent :( Not sure how to get round that except by some scraggy coding: Crt Int(YourTime/3600):":":Mod(YourTime,3600) Regards Brian Thanks Brian, I have tried that: PRINT OCONV(9,'MT') and get 01:00 The flavor we use is PIOPEN.FORMAT should we use any options? Regards, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 June 2007 10:54 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code Tim A regular MT conversion should do that: OCONV(9,"MT") -> 25:00 Just don't use the H option (MTH or MTHS). Regards Brian I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Time conversion code
Hi Brian, A regular MT conversion should do that: OCONV(9,"MT") -> 25:00 Interestingly, it doesn't. Or, at least, not in Ideal flavour. This may be another undocumented flavour difference. I certainly thought this worked. Martin Phillips, Ladybridge Systems Ltd --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
CRT OCONV(TIME,"MTS") works for us. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Franklin Sent: 06 June 2007 10:09 To: u2-users@listserver.u2ug.org Subject: [U2] Time conversion code I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
Thanks Brian, I have tried that: PRINT OCONV(9,'MT') and get 01:00 The flavor we use is PIOPEN.FORMAT should we use any options? Regards, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 06 June 2007 10:54 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Time conversion code Tim A regular MT conversion should do that: OCONV(9,"MT") -> 25:00 Just don't use the H option (MTH or MTHS). Regards Brian I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Time conversion code
Tim A regular MT conversion should do that: OCONV(9,"MT") -> 25:00 Just don't use the H option (MTH or MTHS). Regards Brian I have an internal time of greater than 24hrs (86400) is there a conversion code I can use to display the actual time in hours:minutes e.g. 120:45. We are running Universe 10.1.17 Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/