1 | SUBROUTINE PRTIME(TTIME)
|
---|
2 |
|
---|
3 | C-----------------------------------------------------------------------
|
---|
4 | C PR(INT) TIME
|
---|
5 | C
|
---|
6 | C PRINTS PRESENT DATE AND TIME AND GIVES IT IN A FORMAT SUITED FOR THE
|
---|
7 | C RUNHEADER AND EVENTHEADER
|
---|
8 | C THIS SUBROUTINE IS CALLED FROM MAIN AND START
|
---|
9 | C ARGUMENT:
|
---|
10 | C TTIME = TIME (YYMMDD)
|
---|
11 | C
|
---|
12 | C IF OUR DATE ROUTINE DOES NOT FIT TO YOUR COMPUTER, PLEASE REPLACE
|
---|
13 | C IT BY A SUITABLE ROUTINE OF YOUR SYSTEM
|
---|
14 | C-----------------------------------------------------------------------
|
---|
15 |
|
---|
16 | IMPLICIT NONE
|
---|
17 | *KEEP,RUNPAR.
|
---|
18 | COMMON /RUNPAR/ FIXHEI,THICK0,HILOECM,HILOELB,
|
---|
19 | * STEPFC,NRRUN,NSHOW,PATAPE,MONIIN,
|
---|
20 | * MONIOU,MDEBUG,NUCNUC,
|
---|
21 | * CETAPE,
|
---|
22 | * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
|
---|
23 | * N1STTR,MDBASE,
|
---|
24 | * DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
|
---|
25 | * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
|
---|
26 | * ,GHEISH,GHESIG
|
---|
27 | COMMON /RUNPAC/ DSN,HOST,USER
|
---|
28 | DOUBLE PRECISION FIXHEI,THICK0,HILOECM,HILOELB
|
---|
29 | REAL STEPFC
|
---|
30 | INTEGER NRRUN,NSHOW,PATAPE,MONIIN,MONIOU,MDEBUG,NUCNUC,
|
---|
31 | * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
|
---|
32 | * N1STTR,MDBASE
|
---|
33 | INTEGER CETAPE
|
---|
34 | CHARACTER*79 DSN
|
---|
35 | CHARACTER*20 HOST,USER
|
---|
36 |
|
---|
37 | LOGICAL DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
|
---|
38 | * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
|
---|
39 | * ,GHEISH,GHESIG
|
---|
40 | *KEND.
|
---|
41 |
|
---|
42 | DOUBLE PRECISION TTIME
|
---|
43 | INTEGER ID, IT, ISL1, ISL2, ISL3, ISL4, ISL5, ISL6
|
---|
44 |
|
---|
45 | C-----------------------------------------------------------------------
|
---|
46 |
|
---|
47 | C call jcdate (modified version 13-10-98)
|
---|
48 | CALL jcdate(ID, IT, ISL1, ISL2, ISL3, ISL4, ISL5, ISL6)
|
---|
49 | ttime = DBLE(ID)
|
---|
50 |
|
---|
51 | C format dd, mm, yy, hh, mm, ss
|
---|
52 | WRITE(MONIOU,100) ISL3,ISL2,ISL1,ISL4,ISL5,ISL6
|
---|
53 | 100 FORMAT(' PRESENT TIME : ',
|
---|
54 | * I2,'.',I2.2,'.',I2.2,I4,':',I2.2,':',I2.2)
|
---|
55 |
|
---|
56 | c>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
---|
57 |
|
---|
58 | RETURN
|
---|
59 | END
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 |
|
---|
67 |
|
---|