JHUGen MELA  JHUGen v7.5.6, MELA v2.4.2
Matrix element calculations as used in JHUGen.
hto_puttime Module Reference

Functions/Subroutines

subroutine hto_timestamp ()
 

Function/Subroutine Documentation

◆ hto_timestamp()

subroutine hto_puttime::hto_timestamp

Definition at line 101 of file CALLING_cpHTO.f.

101 *
102 !**************************************************************************80
103 !
104 !! TIMESTAMP prints the current YMDHMS date as a time stamp.
105 !
106 ! Example:
107 !
108 ! 31 May 2001 9:45:54.872 AM
109 !
110 ! Modified:
111 !
112 ! 06 August 2005
113 !
114 ! Author:
115 !
116 ! John Burkardt
117 !
118 ! Parameters:
119 !
120 ! None
121 !
122  IMPLICIT NONE
123 
124  CHARACTER (len=8) ampm
125  INTEGER d
126  INTEGER h
127  INTEGER m
128  INTEGER mm
129  CHARACTER (len= 9), parameter, dimension(12) :: month= (/
130  # 'January ', 'February ', 'March ', 'April ',
131  # 'May ', 'June ', 'July ', 'August ',
132  # 'September', 'October ', 'November ', 'December ' /)
133  INTEGER n
134  INTEGER s
135  INTEGER values(8)
136  INTEGER y
137 
138  CALL date_and_time (values= values)
139 
140  y= values(1)
141  m= values(2)
142  d= values(3)
143  h= values(5)
144  n= values(6)
145  s= values(7)
146  mm= values(8)
147 
148  IF(h < 12) THEN
149  ampm= 'AM'
150  ELSE IF (h== 12) THEN
151  IF(n== 0 .and. s== 0) THEN
152  ampm= 'Noon'
153  ELSE
154  ampm= 'PM'
155  ENDIF
156  ELSE
157  h= h-12
158  IF(h < 12) THEN
159  ampm= 'PM'
160  ELSE IF (h== 12) THEN
161  IF(n== 0 .and. s== 0) THEN
162  ampm= 'Midnight'
163  ELSE
164  ampm= 'AM'
165  ENDIF
166  ENDIF
167  ENDIF
168 
169  WRITE (*,'(i2,1x,a,1x,i4,2x,i2,a1,i2.2,a1,i2.2,a1,i3.3,1x,a)')
170  # d,trim(month(m)),y,h,':',n,':',s,'.',mm,trim(ampm)
171 
172  RETURN
hto_masses::mm
real *8, parameter mm
Definition: CALLING_cpHTO.f:78