SCOUG-Programming Mailing List Archives
Return to [ 13 | 
February | 
2004 ]
<< Previous Message << 
 >> Next Message >>
 
 
 
Content Type:   text/plain 
Harry Motin wrote:  
>   
> Have you considered using REXX for this task?  
>         SET > C:\ENVIR.TXT  
 
Thanks Harry, but I need some error checking which is why I want some  
code in the middle.  For example, if somebody put  
  SET TZ=JUSTDUCKY  
in their config.sys I want to know what GMT offset the software will  
use.  DosGetDateTime should give me that.  
 
> Now, tell me how are you going to use the  
> DOSGETDATETIME call? It's my understanding that  
> this function is part of the OS/2 trace facility.  
 
It's a library routine in one of the C headers.  I haven't looked inside  
the header yet so I don't know what actually gets done.  
 
Rexx has a TIME() function but it doesn't return the GMT offset.  I  
didn't see a Rexx Sys*() call that would return it either, so you would  
have to write a DLL with a routine which makes the call and returns the  
value.  Given the "Hello World" level of what I need, it actually seems  
like overkill to write it in Rexx.  
 
- Peter  
 
 
=====================================================  
 
To unsubscribe from this list, send an email message  
to "steward@scoug.com". In the body of the message,  
put the command "unsubscribe scoug-programming".  
 
For problems, contact the list owner at  
"rollin@scoug.com".  
 
=====================================================  
 
  
<< Previous Message << 
 >> Next Message >>
Return to [ 13 | 
February | 
2004 ] 
  
  
The Southern California OS/2 User Group
 P.O. Box 26904
 Santa Ana, CA  92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group.  ALL RIGHTS 
RESERVED. 
 
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International 
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
 
 |