libtime++: Date and time calculation
time_fullyear.f
Go to the documentation of this file.
1 c this is <time_fullyear.f> (extracted from ../libtime.f)
2 c automatically generated by "SPLITF.PL V1.0 SPLIT Fortran source code"
3 c----------------------------------------------------------------------
4 c
5 c Copyright 2000 by Thomas Forbriger (IfG Stuttgart)
6 c
7 c ----
8 c libtime is free software; you can redistribute it and/or modify
9 c it under the terms of the GNU General Public License as published by
10 c the Free Software Foundation; either version 2 of the License, or
11 c (at your option) any later version.
12 c
13 c This program is distributed in the hope that it will be useful,
14 c but WITHOUT ANY WARRANTY; without even the implied warranty of
15 c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 c GNU General Public License for more details.
17 c
18 c You should have received a copy of the GNU General Public License
19 c along with this program; if not, write to the Free Software
20 c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 c ----
22 c
23 c create a full qualified year value from a two-digit abbreviation
24 c
25 c REVISIONS and CHANGES
26 c 05/08/2000 V1.0 Thomas Forbriger
27 c V2.0 use language specific warning wrapper
28 c
29 c ============================================================================
30 cS
31  subroutine time_fullyear(year)
32 c
33 c Makes year to be a full 4 digit year value. This is used to set
34 c the year to a meanigfull value. Notice that this routine does not
35 c make sense in combination with relative times.
36 c
37 c year < 70 ---> year := year+2000
38 c 69 < year < 100 ---> year := year+1900
39 c
40 c last change: V2.00 (05/08/2000)
41 c
42  integer year
43 cE
44  if (year.lt.70) year=year+2000
45  if (year.lt.100) year=year+1900
46  if (year.lt.1970)
47  & call time_util_warning_n('time_fullyear',
48  & 'spurious year value: ',year)
49  return
50  end
51 c
52 c ----- END OF <time_fullyear.f> -----
subroutine time_util_warning_n(caller, text, n)
void time_fullyear(timeint *year)