Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get system time in OS/2

0 views
Skip to first unread message

Philip Glebow

unread,
Jul 16, 1996, 3:00:00 AM7/16/96
to

I need a way to retrieve the current time from the system in OS/2.
The best I have been able to come up with is executing the TIME
command with exec and piping in a file which contains a new line
character. It is quite a hack and I'd love to hear a better solution.
Thanks for your time.

Heribert Dahms

unread,
Jul 19, 1996, 3:00:00 AM7/19/96
to

In <4sgvq0$n...@rtpnews.raleigh.ibm.com> pgl...@vnet.ibm.com writes:

: I need a way to retrieve the current time from the system in OS/2.

: The best I have been able to come up with is executing the TIME
: command with exec and piping in a file which contains a new line
: character. It is quite a hack and I'd love to hear a better solution.

Under MSDOS/WNT I tested: exec time << ""
If you have Tcl7.5 use the clock command.


Bye, Heribert (da...@ifk20.mach.uni-karlsruhe.de)

0 new messages