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

Need to pull in time in VM/XA fortran (IBM 3270)

0 views
Skip to first unread message

furio ercolessi

unread,
Mar 16, 1993, 7:11:02 PM3/16/93
to
In article <1993Mar16.2...@PacBell.COM>, smm...@foghorn.srv.pacbell.com (Sean Myers)
writes:
|> I have to pull the date and time into a fortran program running on an IBM
|>3270 running VM/XA. What is the best way to do that ?

Look in the manual for a system routine called 'DATIM'. It returns an
integer array containing, among other things, date and time.

I take this opportunity to ask to people familiar with Fortran 90
whether date/time (and CPU time) have been standardized.
It is rather inconvenient to figure out how that is done on every
machine you are porting your programs to. Even VS Fortran and
xlf developers inside IBM couldn't agree on how to do that in
Fortran 77.

--
furio ercolessi <fu...@uiuc.edu>* <fu...@sissa.it>+
* materials research lab, uni illinois at urbana-champaign
+ intl school for advanced studies, trieste, italy

Keith Bierman-khb@chiba.eng.sun.com::SunPro

unread,
Mar 17, 1993, 7:03:05 AM3/17/93
to

In article <C40B6...@news.cso.uiuc.edu> erco...@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:

I take this opportunity to ask to people familiar with Fortran 90
whether date/time (and CPU time) have been standardized.


Yes. See the Standard 13.13.26 DATE_AND_TIME(DATE,TIME,ZONE,VALUES)
all are optional arguments. the representation is specified to be ISO
8601:1988 compatible (hence leap second is allowed for).
--
----------------------------------------------------------------
Keith H. Bierman keith....@Sun.COM| k...@chiba.Eng.Sun.COM
SunPro 2550 Garcia MTV 12-40 | (415 336 2648) fax 964 0946
Mountain View, CA 94043 <speaking for myself, not Sun*> Copyright 1993

0 new messages